Skip to content

Commit

Permalink
Fix does not set supported color modes for XT5Light #1385
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexxIT committed Apr 17, 2024
1 parent 007f806 commit bb8b4ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions custom_components/sonoff/light.py
Original file line number Diff line number Diff line change
Expand Up @@ -1041,7 +1041,7 @@ async def async_turn_off(self, **kwargs) -> None:


# noinspection PyAbstractClass, UIID22
class XFanLight(XEntity, LightEntity):
class XFanLight(XOnOffLight):
params = {"switches", "light"}
uid = "1" # backward compatibility

Expand Down Expand Up @@ -1070,7 +1070,7 @@ async def async_turn_off(self):


# noinspection PyAbstractClass, UIID25
class XDiffuserLight(XEntity, LightEntity):
class XDiffuserLight(XOnOffLight):
params = {"lightswitch", "lightbright", "lightmode", "lightRcolor"}

_attr_effect_list = ["Color Light", "RGB Color", "Night Light"]
Expand Down Expand Up @@ -1137,7 +1137,7 @@ async def async_turn_off(self, **kwargs) -> None:
await self.ewelink.send(self.device, {"lightswitch": 0})


class XT5Light(XEntity, LightEntity):
class XT5Light(XOnOffLight):
params = {"lightSwitch", "lightMode"}

_attr_effect_list = [
Expand Down

0 comments on commit bb8b4ad

Please sign in to comment.