Make sure Ring binary_sensor state will update only if device_id matches (#9247)
This commit is contained in:
parent
0af4f8903d
commit
a55895b662
2 changed files with 4 additions and 3 deletions
|
@ -103,7 +103,8 @@ class RingBinarySensor(BinarySensorDevice):
|
|||
self._data.check_alerts()
|
||||
|
||||
if self._data.alert:
|
||||
self._state = (self._sensor_type ==
|
||||
self._data.alert.get('kind'))
|
||||
if self._sensor_type == self._data.alert.get('kind') and \
|
||||
self._data.account_id == self._data.alert.get('doorbot_id'):
|
||||
self._state = True
|
||||
else:
|
||||
self._state = False
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue