From 77e7bf51b72b8e94f183f0bf6d4e37c118c08b82 Mon Sep 17 00:00:00 2001 From: Andrew Leech Date: Fri, 19 Jul 2024 20:36:25 +1000 Subject: [PATCH] Only read wifi strength from active connections. (#5184) --- supervisor/host/configuration.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/supervisor/host/configuration.py b/supervisor/host/configuration.py index 60fb9df01..8abf5c2fc 100644 --- a/supervisor/host/configuration.py +++ b/supervisor/host/configuration.py @@ -191,7 +191,7 @@ class Interface: mode = WifiMode(inet.settings.wireless.mode) # Signal - if inet.wireless: + if inet.wireless and inet.wireless.active: signal = inet.wireless.active.strength else: signal = None