From 2a2d752c6758d33ba9897061a84f071cff5c280d Mon Sep 17 00:00:00 2001 From: Dmitry Mamontov Date: Wed, 3 Nov 2021 13:01:33 +0300 Subject: [PATCH] Fix undefined type --- custom_components/miwifi/core/luci.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/miwifi/core/luci.py b/custom_components/miwifi/core/luci.py index 899d682..f7c6dbc 100644 --- a/custom_components/miwifi/core/luci.py +++ b/custom_components/miwifi/core/luci.py @@ -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] = {}