Skip to content

Commit

Permalink
Fix XSwitches.async_turn_on for multichannel devices
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexxIT committed Apr 3, 2024
1 parent ceafb28 commit 21b0afa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/sonoff/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def set_state(self, params: dict):
except StopIteration:
pass

async def async_turn_on(self, **kwargs):
async def async_turn_on(self, *args, **kwargs):
params = {"switches": [{"outlet": self.channel, "switch": "on"}]}
await self.ewelink.send_bulk(self.device, params)

Expand Down

0 comments on commit 21b0afa

Please sign in to comment.