mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-10 02:36:29 +00:00
Set autoreconnect to true for interfaces (#3807)
This commit is contained in:
parent
2d908ffcec
commit
8b5e96a8ad
@ -51,6 +51,7 @@ def get_connection_from_interface(
|
||||
"uuid": Variant("s", uuid),
|
||||
"llmnr": Variant("i", 2),
|
||||
"mdns": Variant("i", 2),
|
||||
"autoconnect": Variant("b", True),
|
||||
}
|
||||
|
||||
if interface.type != InterfaceType.VLAN:
|
||||
|
@ -87,6 +87,7 @@ async def mock_call_dbus_get_settings_signature(
|
||||
assert settings["connection"]["uuid"] == Variant(
|
||||
"s", "0c23631e-2118-355c-bbb0-8943229cb0d6"
|
||||
)
|
||||
assert settings["connection"]["autoconnect"] == Variant("b", True)
|
||||
|
||||
assert "ipv4" in settings
|
||||
assert settings["ipv4"]["gateway"] == Variant("s", "192.168.2.1")
|
||||
|
Loading…
x
Reference in New Issue
Block a user