Skip to content

Commit

Permalink
Update olarm_api.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Cha0s2nd authored Oct 30, 2023
1 parent 97d12cb commit b32888e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/olarm_sensors/olarm_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ async def get_pgm_zones(self, devices_json) -> list:
pgm_labels = devices_json["deviceProfile"]["pgmLabels"]
pgm_limit = devices_json["deviceProfile"]["pgmLimit"]
pgm_setup = devices_json["deviceProfile"]["pgmControl"]
else
else:
return []

except (DictionaryKeyError, KeyError):
Expand Down Expand Up @@ -448,7 +448,7 @@ async def get_ukey_zones(self, devices_json) -> list:
ukey_labels = devices_json["deviceProfile"]["ukeysLabels"]
ukey_limit = devices_json["deviceProfile"]["ukeysLimit"]
ukey_state = devices_json["deviceProfile"]["ukeysControl"]
else
else:
return []

except (DictionaryKeyError, KeyError):
Expand Down

0 comments on commit b32888e

Please sign in to comment.