mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-12-24 20:35:55 +00:00
Use bool for host internet (#2247)
* Use bool for host internet * Ignore host check if no network manager * Update supervisor/host/network.py Co-authored-by: Pascal Vizeli <pvizeli@syshack.ch> * Check dbus connection isntead of supported features Co-authored-by: Pascal Vizeli <pvizeli@syshack.ch>
This commit is contained in:
@@ -13,7 +13,6 @@ from supervisor.bootstrap import initialize_coresys
|
||||
from supervisor.coresys import CoreSys
|
||||
from supervisor.dbus.network import NetworkManager
|
||||
from supervisor.docker import DockerAPI
|
||||
from supervisor.host.const import ConnectivityState
|
||||
from supervisor.utils.gdbus import DBus
|
||||
|
||||
from tests.common import exists_fixture, load_fixture, load_json_fixture
|
||||
@@ -139,7 +138,7 @@ async def coresys(loop, docker, network_manager, aiohttp_client) -> CoreSys:
|
||||
|
||||
# Set internet state
|
||||
coresys_obj.supervisor._connectivity = True
|
||||
coresys_obj.host.network._connectivity = ConnectivityState.FULL
|
||||
coresys_obj.host.network._connectivity = True
|
||||
|
||||
yield coresys_obj
|
||||
|
||||
|
||||
Reference in New Issue
Block a user