mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Fix bug with how SimpliSafe lock's respond to websocket events (#60152)
This commit is contained in:
parent
93ad486439
commit
c87ab574a7
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user