Skip to content

Commit

Permalink
Fix binary_sensor with 'none' dp value
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Albu committed Apr 20, 2023
1 parent 6f5a7b6 commit 64bf5d6
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions custom_components/localtuya/binary_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ def status_updated(self):
"""Device status was updated."""
super().status_updated()
state = str(self.dps(self._dp_id)).lower()
if state == 'none':
return
if state == self._config[CONF_STATE_ON].lower():
self._is_on = True
elif state == self._config[CONF_STATE_OFF].lower():
Expand Down

0 comments on commit 64bf5d6

Please sign in to comment.