Skip to content

Commit

Permalink
Merge pull request #60 from alexualbu/3.7.0
Browse files Browse the repository at this point in the history
Fix binary_sensor with 'none' dp value
  • Loading branch information
leeyuentuen authored Apr 20, 2023
2 parents cbe7840 + 64bf5d6 commit ced9ca5
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 ced9ca5

Please sign in to comment.