mirror of
https://github.com/home-assistant/supervisor.git
synced 2026-05-08 17:08:36 +01:00
Fix none error in mapping wireless fields (#5749)
This commit is contained in:
@@ -234,7 +234,7 @@ class Interface:
|
||||
|
||||
# WifiMode
|
||||
mode = WifiMode.INFRASTRUCTURE
|
||||
if inet.settings.wireless.mode:
|
||||
if inet.settings.wireless and inet.settings.wireless.mode:
|
||||
mode = WifiMode(inet.settings.wireless.mode)
|
||||
|
||||
# Signal
|
||||
|
||||
Reference in New Issue
Block a user