mirror of
https://github.com/tomaae/homeassistant-mikrotik_router.git
synced 2025-07-01 13:04:28 +02:00
removed unused variable
This commit is contained in:
parent
01801fdc2d
commit
f89a263691
1 changed files with 1 additions and 2 deletions
|
@ -94,7 +94,6 @@ def parse_api(
|
|||
# ---------------------------
|
||||
def get_uid(entry, key, key_search, keymap) -> Optional(str):
|
||||
"""Get UID for data list"""
|
||||
uid = None
|
||||
if not key_search:
|
||||
if key not in entry:
|
||||
return None
|
||||
|
@ -109,7 +108,7 @@ def get_uid(entry, key, key_search, keymap) -> Optional(str):
|
|||
else:
|
||||
return None
|
||||
|
||||
return uid
|
||||
return uid if uid else None
|
||||
|
||||
|
||||
# ---------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue