From cf6398a949ad7e87c9d0f130d33787ebde8664fa Mon Sep 17 00:00:00 2001 From: logan893 Date: Thu, 30 Sep 2021 19:22:42 +0900 Subject: [PATCH] Fix hue turning on eWeLink switch (#56318) --- homeassistant/components/hue/light.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/hue/light.py b/homeassistant/components/hue/light.py index ea89d91113b..cc3144b99ca 100644 --- a/homeassistant/components/hue/light.py +++ b/homeassistant/components/hue/light.py @@ -282,6 +282,7 @@ class HueLight(CoordinatorEntity, LightEntity): self.is_osram = False self.is_philips = False self.is_innr = False + self.is_ewelink = False self.is_livarno = False self.gamut_typ = GAMUT_TYPE_UNAVAILABLE self.gamut = None @@ -289,6 +290,7 @@ class HueLight(CoordinatorEntity, LightEntity): self.is_osram = light.manufacturername == "OSRAM" self.is_philips = light.manufacturername == "Philips" self.is_innr = light.manufacturername == "innr" + self.is_ewelink = light.manufacturername == "eWeLink" self.is_livarno = light.manufacturername.startswith("_TZ3000_") self.gamut_typ = self.light.colorgamuttype self.gamut = self.light.colorgamut @@ -497,7 +499,7 @@ class HueLight(CoordinatorEntity, LightEntity): elif flash == FLASH_SHORT: command["alert"] = "select" 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" if ATTR_EFFECT in kwargs: