Skip to content

Commit

Permalink
Fix light control issues with Aris Starlight series fans
Browse files Browse the repository at this point in the history
  • Loading branch information
dasshubham762 committed Jun 29, 2024
1 parent 4ff1f5c commit 9ce7ea6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions custom_components/atomberg/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@ async def async_send_light_command(self, cmd: dict):
if not set(cmd.keys()).issubset(supported_cmds):
raise ValueError(f"Supported commands are: {', '.join(supported_cmds)}")

if len(cmd) > 1 and ATTR_LED in cmd:
del cmd[ATTR_LED]

if await self._api.async_send_command(self.id, cmd):
_LOGGER.debug("%s: Light command executed successfully.", self.name)
self.update_state(cmd)
Expand Down

0 comments on commit 9ce7ea6

Please sign in to comment.