Fix Shelly Duo RGBW color mode attribute (#74193)
This commit is contained in:
parent
e4bd53b395
commit
0028dc46e6
1 changed files with 1 additions and 1 deletions
|
@ -215,7 +215,7 @@ class BlockShellyLight(ShellyBlockEntity, LightEntity):
|
|||
def color_mode(self) -> ColorMode:
|
||||
"""Return the color mode of the light."""
|
||||
if self.mode == "color":
|
||||
if hasattr(self.block, "white"):
|
||||
if self.wrapper.model in RGBW_MODELS:
|
||||
return ColorMode.RGBW
|
||||
return ColorMode.RGB
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue