Skip to content
Snippets Groups Projects
Unverified Commit 0028dc46 authored by Shay Levy's avatar Shay Levy Committed by GitHub
Browse files

Fix Shelly Duo RGBW color mode attribute (#74193)

parent e4bd53b3
No related branches found
No related tags found
No related merge requests found
...@@ -215,7 +215,7 @@ class BlockShellyLight(ShellyBlockEntity, LightEntity): ...@@ -215,7 +215,7 @@ class BlockShellyLight(ShellyBlockEntity, LightEntity):
def color_mode(self) -> ColorMode: def color_mode(self) -> ColorMode:
"""Return the color mode of the light.""" """Return the color mode of the light."""
if self.mode == "color": if self.mode == "color":
if hasattr(self.block, "white"): if self.wrapper.model in RGBW_MODELS:
return ColorMode.RGBW return ColorMode.RGBW
return ColorMode.RGB return ColorMode.RGB
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment