mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Allow light toggle service to accept all turn on params (#20912)
This commit is contained in:
parent
61786b79f7
commit
f2abc91c1e
@ -123,10 +123,7 @@ LIGHT_TURN_OFF_SCHEMA = vol.Schema({
|
|||||||
ATTR_FLASH: vol.In([FLASH_SHORT, FLASH_LONG]),
|
ATTR_FLASH: vol.In([FLASH_SHORT, FLASH_LONG]),
|
||||||
})
|
})
|
||||||
|
|
||||||
LIGHT_TOGGLE_SCHEMA = vol.Schema({
|
LIGHT_TOGGLE_SCHEMA = LIGHT_TURN_ON_SCHEMA
|
||||||
ATTR_ENTITY_ID: cv.comp_entity_ids,
|
|
||||||
ATTR_TRANSITION: VALID_TRANSITION,
|
|
||||||
})
|
|
||||||
|
|
||||||
PROFILE_SCHEMA = vol.Schema(
|
PROFILE_SCHEMA = vol.Schema(
|
||||||
vol.ExactSequence((str, cv.small_float, cv.small_float, cv.byte))
|
vol.ExactSequence((str, cv.small_float, cv.small_float, cv.byte))
|
||||||
|
@ -68,12 +68,8 @@ turn_off:
|
|||||||
toggle:
|
toggle:
|
||||||
description: Toggles a light.
|
description: Toggles a light.
|
||||||
fields:
|
fields:
|
||||||
entity_id:
|
'...':
|
||||||
description: Name(s) of entities to toggle.
|
description: All turn_on parameters can be used.
|
||||||
example: 'light.kitchen'
|
|
||||||
transition:
|
|
||||||
description: Duration in seconds it takes to get to next state.
|
|
||||||
example: 60
|
|
||||||
|
|
||||||
hue_activate_scene:
|
hue_activate_scene:
|
||||||
description: Activate a hue scene stored in the hue hub.
|
description: Activate a hue scene stored in the hue hub.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user