mirror of
https://github.com/home-assistant/core.git
synced 2025-08-02 04:05:06 +02:00
Fix Shelly Duo RGBW color mode attribute (#74193)
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user