Skip to content

Commit

Permalink
Run black
Browse files Browse the repository at this point in the history
  • Loading branch information
awlx committed May 4, 2023
1 parent d56c24c commit 8e94355
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions uisp_respondd/uisp_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,13 @@ def get_location(json):


def get_apDevice(json):
"""returns apDevice """
"""returns apDevice"""
links = scrape(cfg.controller_url + "/data-links", cfg.token)
if links:
for link in links:
if link['from']['device']['identification']['name'] == get_hostname(json):
if link["from"]["device"]["identification"]["name"] == get_hostname(json):
try:
return link['to']['device']['identification']['name']
return link["to"]["device"]["identification"]["name"]
except Exception:
return ""

Expand Down

0 comments on commit 8e94355

Please sign in to comment.