Skip to content

Commit

Permalink
Fix undefined type
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry Mamontov committed Nov 3, 2021
1 parent ed4d04e commit 2a2d752
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/miwifi/core/luci.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ async def set_devices_list(self) -> None:
else:
ip = self._ip

device["connection"] = CONNECTION_RANGES[device["type"]]
device["connection"] = CONNECTION_RANGES[device["type"]] if device["type"] in CONNECTION_RANGES else "unknown"

if ip not in devices_to_ip:
devices_to_ip[ip] = {}
Expand Down

0 comments on commit 2a2d752

Please sign in to comment.