We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23b1d2a commit 79067e4Copy full SHA for 79067e4
custom_components/sonoff/light.py
@@ -1233,14 +1233,11 @@ def set_state(self, params: dict):
1233
async def async_turn_on(
1234
self, brightness: int = None, effect: str = None, **kwargs
1235
) -> None:
1236
- params = {}
+ params = {"lightSwitch": "on"}
1237
1238
if effect and effect in T5_EFFECTS:
1239
params["lightMode"] = T5_EFFECTS[effect]
1240
1241
- if not params:
1242
- params["lightSwitch"] = "on"
1243
-
1244
await self.ewelink.send(self.device, params)
1245
1246
async def async_turn_off(self, **kwargs) -> None:
0 commit comments