mirror of
https://github.com/tomaae/homeassistant-mikrotik_router.git
synced 2025-07-01 21:14:32 +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):
|
def get_uid(entry, key, key_search, keymap) -> Optional(str):
|
||||||
"""Get UID for data list"""
|
"""Get UID for data list"""
|
||||||
uid = None
|
|
||||||
if not key_search:
|
if not key_search:
|
||||||
if key not in entry:
|
if key not in entry:
|
||||||
return None
|
return None
|
||||||
|
@ -109,7 +108,7 @@ def get_uid(entry, key, key_search, keymap) -> Optional(str):
|
||||||
else:
|
else:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
return uid
|
return uid if uid else None
|
||||||
|
|
||||||
|
|
||||||
# ---------------------------
|
# ---------------------------
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue