Skip to content

Commit

Permalink
Fix custom device_class fan support after Hass v2023.12 #1266
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexxIT committed Feb 13, 2024
1 parent 1c85d28 commit 7a9aea1
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 @@ -22,7 +22,7 @@ class XSwitch(XEntity, SwitchEntity):
def set_state(self, params: dict):
self._attr_is_on = params["switch"] == "on"

async def async_turn_on(self, **kwargs):
async def async_turn_on(self, *args, **kwargs):
await self.ewelink.send(self.device, {"switch": "on"})

async def async_turn_off(self):
Expand Down

0 comments on commit 7a9aea1

Please sign in to comment.