mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +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]),
|
||||
})
|
||||
|
||||
LIGHT_TOGGLE_SCHEMA = vol.Schema({
|
||||
ATTR_ENTITY_ID: cv.comp_entity_ids,
|
||||
ATTR_TRANSITION: VALID_TRANSITION,
|
||||
})
|
||||
LIGHT_TOGGLE_SCHEMA = LIGHT_TURN_ON_SCHEMA
|
||||
|
||||
PROFILE_SCHEMA = vol.Schema(
|
||||
vol.ExactSequence((str, cv.small_float, cv.small_float, cv.byte))
|
||||
|
@ -68,12 +68,8 @@ turn_off:
|
||||
toggle:
|
||||
description: Toggles a light.
|
||||
fields:
|
||||
entity_id:
|
||||
description: Name(s) of entities to toggle.
|
||||
example: 'light.kitchen'
|
||||
transition:
|
||||
description: Duration in seconds it takes to get to next state.
|
||||
example: 60
|
||||
'...':
|
||||
description: All turn_on parameters can be used.
|
||||
|
||||
hue_activate_scene:
|
||||
description: Activate a hue scene stored in the hue hub.
|
||||
|
Loading…
x
Reference in New Issue
Block a user