From c8c3ce4172323684691d110c359cd313a81dd8d6 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Thu, 18 Feb 2021 12:24:42 +0100 Subject: [PATCH] Add selectors to Switch service definitions (#46635) --- homeassistant/components/switch/services.yaml | 21 ++++++------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/homeassistant/components/switch/services.yaml b/homeassistant/components/switch/services.yaml index 74dda2ddf4f..de45995797f 100644 --- a/homeassistant/components/switch/services.yaml +++ b/homeassistant/components/switch/services.yaml @@ -1,22 +1,13 @@ # Describes the format for available switch services turn_on: - description: Turn a switch on. - fields: - entity_id: - description: Name(s) of entities to turn on - example: "switch.living_room" + description: Turn a switch on + target: turn_off: - description: Turn a switch off. - fields: - entity_id: - description: Name(s) of entities to turn off. - example: "switch.living_room" + description: Turn a switch off + target: toggle: - description: Toggles a switch state. - fields: - entity_id: - description: Name(s) of entities to toggle. - example: "switch.living_room" + description: Toggles a switch state + target: