mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Update light.py (#26703)
Fix for esphome lights to use the flash feature
This commit is contained in:
parent
dc52b858a4
commit
544cdae67c
@ -74,7 +74,7 @@ class EsphomeLight(EsphomeEntity, Light):
|
||||
red, green, blue = color_util.color_hsv_to_RGB(hue, sat, 100)
|
||||
data["rgb"] = (red / 255, green / 255, blue / 255)
|
||||
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]
|
||||
if ATTR_BRIGHTNESS in kwargs:
|
||||
|
Loading…
x
Reference in New Issue
Block a user