mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +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:
|
if is_group:
|
||||||
self.is_osram = False
|
self.is_osram = False
|
||||||
self.is_philips = False
|
self.is_philips = False
|
||||||
|
self.is_innr = False
|
||||||
self.gamut_typ = GAMUT_TYPE_UNAVAILABLE
|
self.gamut_typ = GAMUT_TYPE_UNAVAILABLE
|
||||||
self.gamut = None
|
self.gamut = None
|
||||||
else:
|
else:
|
||||||
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.gamut_typ = self.light.colorgamuttype
|
self.gamut_typ = self.light.colorgamuttype
|
||||||
self.gamut = self.light.colorgamut
|
self.gamut = self.light.colorgamut
|
||||||
_LOGGER.debug("Color gamut of %s: %s", self.name, str(self.gamut))
|
_LOGGER.debug("Color gamut of %s: %s", self.name, str(self.gamut))
|
||||||
@ -420,7 +422,7 @@ class HueLight(Light):
|
|||||||
elif flash == FLASH_SHORT:
|
elif flash == FLASH_SHORT:
|
||||||
command["alert"] = "select"
|
command["alert"] = "select"
|
||||||
del command["on"]
|
del command["on"]
|
||||||
else:
|
elif not self.is_innr:
|
||||||
command["alert"] = "none"
|
command["alert"] = "none"
|
||||||
|
|
||||||
if ATTR_EFFECT in kwargs:
|
if ATTR_EFFECT in kwargs:
|
||||||
@ -453,7 +455,7 @@ class HueLight(Light):
|
|||||||
elif flash == FLASH_SHORT:
|
elif flash == FLASH_SHORT:
|
||||||
command["alert"] = "select"
|
command["alert"] = "select"
|
||||||
del command["on"]
|
del command["on"]
|
||||||
else:
|
elif not self.is_innr:
|
||||||
command["alert"] = "none"
|
command["alert"] = "none"
|
||||||
|
|
||||||
if self.is_group:
|
if self.is_group:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user