Skip to content

Commit

Permalink
Update light.py (#26703)
Browse files Browse the repository at this point in the history
Fix for esphome lights to use the flash feature
  • Loading branch information
Sian-Lee-SA authored and fabaff committed Sep 21, 2019
1 parent dc52b85 commit 544cdae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion homeassistant/components/esphome/light.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ async def async_turn_on(self, **kwargs) -> None:
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:
Expand Down

0 comments on commit 544cdae

Please sign in to comment.