Fix binary_sensor.skybell state update when there are no events (#14927)

This commit is contained in:
Albert Lee 2018-06-15 14:30:35 -04:00 committed by Paulus Schoutsen
parent c917470836
commit 940577e105

View file

@ -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 {}