Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions homeassistant/components/switch/services.yaml
Original file line number Diff line number Diff line change
@@ -1,22 +1,16 @@
# Describes the format for available switch services

turn_on:
name: Turn on
description: Turn a switch on
target:
entity:
domain: switch

turn_off:
name: Turn off
description: Turn a switch off
target:
entity:
domain: switch

toggle:
name: Toggle
description: Toggles a switch state
target:
entity:
domain: switch
14 changes: 14 additions & 0 deletions homeassistant/components/switch/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,19 @@
"outlet": {
"name": "Outlet"
}
},
"services": {
"turn_on": {
"name": "Turn on",
"description": "Turns a switch on."
},
"turn_off": {
"name": "Turn off",
"description": "Turns a switch off."
},
"toggle": {
"name": "Toggle",
"description": "Toggles a switch on/off."
}
}
}