Fix binary_sensor.skybell state update when there are no events (#14927)
This commit is contained in:
parent
c917470836
commit
940577e105
1 changed files with 1 additions and 1 deletions
|
@ -94,4 +94,4 @@ class SkybellBinarySensor(SkybellDevice, BinarySensorDevice):
|
|||
|
||||
self._state = bool(event and event.get('id') != self._event.get('id'))
|
||||
|
||||
self._event = event
|
||||
self._event = event or {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue