mirror of
https://github.com/home-assistant/core.git
synced 2025-07-10 14:57:09 +00:00
Fix hue turning on eWeLink switch (#56318)
This commit is contained in:
parent
ee28dd57c1
commit
cf6398a949
@ -282,6 +282,7 @@ class HueLight(CoordinatorEntity, LightEntity):
|
|||||||
self.is_osram = False
|
self.is_osram = False
|
||||||
self.is_philips = False
|
self.is_philips = False
|
||||||
self.is_innr = False
|
self.is_innr = False
|
||||||
|
self.is_ewelink = False
|
||||||
self.is_livarno = False
|
self.is_livarno = False
|
||||||
self.gamut_typ = GAMUT_TYPE_UNAVAILABLE
|
self.gamut_typ = GAMUT_TYPE_UNAVAILABLE
|
||||||
self.gamut = None
|
self.gamut = None
|
||||||
@ -289,6 +290,7 @@ class HueLight(CoordinatorEntity, LightEntity):
|
|||||||
self.is_osram = light.manufacturername == "OSRAM"
|
self.is_osram = light.manufacturername == "OSRAM"
|
||||||
self.is_philips = light.manufacturername == "Philips"
|
self.is_philips = light.manufacturername == "Philips"
|
||||||
self.is_innr = light.manufacturername == "innr"
|
self.is_innr = light.manufacturername == "innr"
|
||||||
|
self.is_ewelink = light.manufacturername == "eWeLink"
|
||||||
self.is_livarno = light.manufacturername.startswith("_TZ3000_")
|
self.is_livarno = light.manufacturername.startswith("_TZ3000_")
|
||||||
self.gamut_typ = self.light.colorgamuttype
|
self.gamut_typ = self.light.colorgamuttype
|
||||||
self.gamut = self.light.colorgamut
|
self.gamut = self.light.colorgamut
|
||||||
@ -497,7 +499,7 @@ class HueLight(CoordinatorEntity, LightEntity):
|
|||||||
elif flash == FLASH_SHORT:
|
elif flash == FLASH_SHORT:
|
||||||
command["alert"] = "select"
|
command["alert"] = "select"
|
||||||
del command["on"]
|
del command["on"]
|
||||||
elif not self.is_innr and not self.is_livarno:
|
elif not self.is_innr and not self.is_ewelink and not self.is_livarno:
|
||||||
command["alert"] = "none"
|
command["alert"] = "none"
|
||||||
|
|
||||||
if ATTR_EFFECT in kwargs:
|
if ATTR_EFFECT in kwargs:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user