From 23700e4db8d8ee613fa0a0cbb1b9f9294efdb532 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sascha=20K=C3=BChndel?= Date: Tue, 7 Jan 2020 20:56:57 +0100 Subject: [PATCH] Fix hue flashing innr lights (#29828) --- homeassistant/components/hue/light.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/hue/light.py b/homeassistant/components/hue/light.py index d81bbd4c438..2a668779cb5 100644 --- a/homeassistant/components/hue/light.py +++ b/homeassistant/components/hue/light.py @@ -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: