Only read wifi strength from active connections. (#5184)

This commit is contained in:
Andrew Leech 2024-07-19 20:36:25 +10:00 committed by GitHub
parent a42d71dcef
commit 77e7bf51b7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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