1
0
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:
Mike Degatano
2025-02-11 07:22:33 -05:00
committed by GitHub
parent fa6949f4e4
commit 52cc17fa3f
13 changed files with 121 additions and 36 deletions

View File

@@ -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"):