mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-12-24 20:35:55 +00:00
Delay initial version fetch until there is connectivity (#5603)
* Delay inital version fetch until there is connectivity * Add test * Only mock get not whole websession object * drive delayed fetch off of supervisor connectivity not host * Fix test to not rely on sleep guessing to track tasks * Use fixture to remove job throttle temporarily
This commit is contained in:
@@ -22,6 +22,7 @@ class NetworkManager(DBusServiceMock):
|
||||
interface = "org.freedesktop.NetworkManager"
|
||||
object_path = "/org/freedesktop/NetworkManager"
|
||||
version = "1.22.10"
|
||||
connectivity_check_enabled = True
|
||||
connectivity = 4
|
||||
devices = [
|
||||
"/org/freedesktop/NetworkManager/Devices/1",
|
||||
@@ -155,7 +156,7 @@ class NetworkManager(DBusServiceMock):
|
||||
@dbus_property()
|
||||
def ConnectivityCheckEnabled(self) -> "b":
|
||||
"""Get ConnectivityCheckEnabled."""
|
||||
return True
|
||||
return self.connectivity_check_enabled
|
||||
|
||||
@ConnectivityCheckEnabled.setter
|
||||
def ConnectivityCheckEnabled(self, value: "b"):
|
||||
|
||||
Reference in New Issue
Block a user