Skip to content

Commit

Permalink
Update omada_client.py
Browse files Browse the repository at this point in the history
  • Loading branch information
T0biii authored May 14, 2024
1 parent 2c38596 commit 1144b27
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions omada_respondd/omada_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,12 +229,13 @@ def get_infos():
# Location
lat, lon = 0, 0
location = moreAPInfos.get("location", None)
if (
location.get("longitude", None) is not None
and location.get("latitude", None) is not None
):
lon = location["longitude"]
lat = location["latitude"]
if location is not None:
if (
location.get("longitude", None) is not None
and location.get("latitude", None) is not None
):
lon = location["longitude"]
lat = location["latitude"]

snmp = moreAPInfos.get("snmp", None)
if snmp.get("location", None) is not None:
Expand Down

0 comments on commit 1144b27

Please sign in to comment.