Allow light toggle service to accept all turn on params (#20912)

This commit is contained in:
zewelor 2019-03-07 18:03:30 +01:00 committed by Fabian Affolter
parent 61786b79f7
commit f2abc91c1e
2 changed files with 3 additions and 10 deletions

View File

@ -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))

View File

@ -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.