mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Fix hue flashing innr lights (#29828)
This commit is contained in:
parent
83d18c183b
commit
23700e4db8
@ -261,11 +261,13 @@ class HueLight(Light):
|
||||
if is_group:
|
||||
self.is_osram = False
|
||||
self.is_philips = False
|
||||
self.is_innr = False
|
||||
self.gamut_typ = GAMUT_TYPE_UNAVAILABLE
|
||||
self.gamut = None
|
||||
else:
|
||||
self.is_osram = light.manufacturername == "OSRAM"
|
||||
self.is_philips = light.manufacturername == "Philips"
|
||||
self.is_innr = light.manufacturername == "innr"
|
||||
self.gamut_typ = self.light.colorgamuttype
|
||||
self.gamut = self.light.colorgamut
|
||||
_LOGGER.debug("Color gamut of %s: %s", self.name, str(self.gamut))
|
||||
@ -420,7 +422,7 @@ class HueLight(Light):
|
||||
elif flash == FLASH_SHORT:
|
||||
command["alert"] = "select"
|
||||
del command["on"]
|
||||
else:
|
||||
elif not self.is_innr:
|
||||
command["alert"] = "none"
|
||||
|
||||
if ATTR_EFFECT in kwargs:
|
||||
@ -453,7 +455,7 @@ class HueLight(Light):
|
||||
elif flash == FLASH_SHORT:
|
||||
command["alert"] = "select"
|
||||
del command["on"]
|
||||
else:
|
||||
elif not self.is_innr:
|
||||
command["alert"] = "none"
|
||||
|
||||
if self.is_group:
|
||||
|
Loading…
x
Reference in New Issue
Block a user