mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 04:07:08 +00:00
Add 'flash_length' to esphome light async_turn_off (#27214)
flash_length was overlooked when fixing the asyn_turn_on flash attribute. async_turn_off is now fixed with the flash attribute.
This commit is contained in:
parent
dae8cd8801
commit
02c983d332
@ -91,7 +91,7 @@ class EsphomeLight(EsphomeEntity, Light):
|
||||
"""Turn the entity off."""
|
||||
data = {"key": self._static_info.key, "state": False}
|
||||
if ATTR_FLASH in kwargs:
|
||||
data["flash"] = FLASH_LENGTHS[kwargs[ATTR_FLASH]]
|
||||
data["flash_length"] = FLASH_LENGTHS[kwargs[ATTR_FLASH]]
|
||||
if ATTR_TRANSITION in kwargs:
|
||||
data["transition_length"] = kwargs[ATTR_TRANSITION]
|
||||
await self._client.light_command(**data)
|
||||
|
Loading…
x
Reference in New Issue
Block a user