diff --git a/homeassistant/components/simplisafe/lock.py b/homeassistant/components/simplisafe/lock.py index 15757fde2e9..435b60af44b 100644 --- a/homeassistant/components/simplisafe/lock.py +++ b/homeassistant/components/simplisafe/lock.py @@ -99,7 +99,7 @@ class SimpliSafeLock(SimpliSafeEntity, LockEntity): """Update the entity when new data comes from the websocket.""" if TYPE_CHECKING: assert event.event_type - if state := STATE_MAP_FROM_WEBSOCKET_EVENT.get(event.event_type): + if state := STATE_MAP_FROM_WEBSOCKET_EVENT.get(event.event_type) is not None: self._attr_is_locked = state self.async_reset_error_count() else: