Skip to content
Snippets Groups Projects
Commit 7238eb9b authored by Aaron Bach's avatar Aaron Bach Committed by Martin Hjelmare
Browse files

Fix possible KeyError in SimpliSafe (#26190)

parent 059ae2bb
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment