mirror of
https://github.com/home-assistant/core.git
synced 2025-08-04 21:25:13 +02:00
Fix possible KeyError in SimpliSafe (#26190)
This commit is contained in:
committed by
Paulus Schoutsen
parent
b64ac5be85
commit
afab0a9568
@@ -170,7 +170,7 @@ class SimpliSafeAlarm(AlarmControlPanel):
|
||||
"""Update alarm status."""
|
||||
event_data = self._simplisafe.last_event_data[self._system.system_id]
|
||||
|
||||
if event_data["pinName"]:
|
||||
if event_data.get("pinName"):
|
||||
self._changed_by = event_data["pinName"]
|
||||
|
||||
if self._system.state == SystemStates.error:
|
||||
|
Reference in New Issue
Block a user