From a5ac338c7482285fdae57a33f0e51b54790c11e8 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Thu, 18 Feb 2021 16:54:20 +0100 Subject: [PATCH] Add selectors to Timer service definitions (#46744) --- homeassistant/components/timer/services.yaml | 34 +++++++------------- 1 file changed, 11 insertions(+), 23 deletions(-) diff --git a/homeassistant/components/timer/services.yaml b/homeassistant/components/timer/services.yaml index cd810c21de5..fcde11cd47f 100644 --- a/homeassistant/components/timer/services.yaml +++ b/homeassistant/components/timer/services.yaml @@ -1,36 +1,24 @@ # Describes the format for available timer services start: - description: Start a timer. - + description: Start a timer + target: fields: - entity_id: - description: Entity id of the timer to start. [optional] - example: "timer.timer0" duration: description: Duration the timer requires to finish. [optional] + default: 0 example: "00:01:00 or 60" + selector: + text: pause: - description: Pause a timer. - - fields: - entity_id: - description: Entity id of the timer to pause. [optional] - example: "timer.timer0" + description: Pause a timer + target: cancel: - description: Cancel a timer. - - fields: - entity_id: - description: Entity id of the timer to cancel. [optional] - example: "timer.timer0" + description: Cancel a timer + target: finish: - description: Finish a timer. - - fields: - entity_id: - description: Entity id of the timer to finish. [optional] - example: "timer.timer0" + description: Finish a timer + target: