mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-12 19:56:29 +00:00
Wifi mode old NM (#2279)
This commit is contained in:
parent
f48249c9d1
commit
01e27dfa2f
@ -338,6 +338,11 @@ class Interface:
|
|||||||
elif inet.settings.wireless_security.key_mgmt == "wpa-psk":
|
elif inet.settings.wireless_security.key_mgmt == "wpa-psk":
|
||||||
auth = AuthMethod.WPA_PSK
|
auth = AuthMethod.WPA_PSK
|
||||||
|
|
||||||
|
# WifiMode
|
||||||
|
mode = WifiMode.INFRASTRUCTURE
|
||||||
|
if inet.settings.wireless.mode:
|
||||||
|
mode = WifiMode(inet.settings.wireless.mode)
|
||||||
|
|
||||||
# Signal
|
# Signal
|
||||||
if inet.wireless:
|
if inet.wireless:
|
||||||
signal = inet.wireless.active.strength
|
signal = inet.wireless.active.strength
|
||||||
@ -345,7 +350,7 @@ class Interface:
|
|||||||
signal = None
|
signal = None
|
||||||
|
|
||||||
return WifiConfig(
|
return WifiConfig(
|
||||||
WifiMode(inet.settings.wireless.mode),
|
mode,
|
||||||
inet.settings.wireless.ssid,
|
inet.settings.wireless.ssid,
|
||||||
auth,
|
auth,
|
||||||
inet.settings.wireless_security.psk,
|
inet.settings.wireless_security.psk,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user