Skip to content

Commit 2b26a12

Browse files
authored
Fix TypeError exception for regions without Guard (#245)
1 parent c560742 commit 2b26a12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

custom_components/alexa_media/alarm_control_panel.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def __init__(self, login, hass):
9090
['amazonBridgeDetails']['amazonBridgeDetails']
9191
['LambdaBridge_AAA/OnGuardSmartHomeBridgeService']
9292
['applianceDetails']['applianceDetails'])
93-
except KeyError:
93+
except (KeyError, TypeError):
9494
guard_dict = {}
9595
for key, value in guard_dict.items():
9696
if value['modelName'] == "REDROCK_GUARD_PANEL":

0 commit comments

Comments
 (0)