Skip to content

Commit

Permalink
Code refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexxIT committed Feb 16, 2024
1 parent 1c95779 commit 4af8a07
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion custom_components/sonoff/light.py
Original file line number Diff line number Diff line change
Expand Up @@ -1135,7 +1135,16 @@ async def async_turn_off(self, **kwargs) -> None:
class XT5Light(XEntity, LightEntity):
params = {"lightSwitch", "lightMode"}

_attr_effect_list = ["Night Light", "Party", "Leisure", "Color", "Childhood", "Wiper", "Fairy", "Starburst"]
_attr_effect_list = [
"Night Light",
"Party",
"Leisure",
"Color",
"Childhood",
"Wiper",
"Fairy",
"Starburst",
]
_attr_supported_features = LightEntityFeature.EFFECT

def set_state(self, params: dict):
Expand Down

0 comments on commit 4af8a07

Please sign in to comment.