Skip to content

Commit

Permalink
Incorrect state change
Browse files Browse the repository at this point in the history
  • Loading branch information
itchannel committed Jul 25, 2022
1 parent eb27fc1 commit 8a5f53b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/apex/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ async def async_turn_on(self, **kwargs):
"ON"
)
if update == True:
self._state = False
self._state = True
self.async_write_ha_state()


Expand Down

0 comments on commit 8a5f53b

Please sign in to comment.