mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-12-24 12:29:08 +00:00
Update resolved information with host info (#3560)
This commit is contained in:
@@ -23,6 +23,7 @@ from supervisor.dbus.const import DBUS_SIGNAL_NM_CONNECTION_ACTIVE_CHANGED
|
||||
from supervisor.dbus.hostname import Hostname
|
||||
from supervisor.dbus.interface import DBusInterface
|
||||
from supervisor.dbus.network import NetworkManager
|
||||
from supervisor.dbus.resolved import Resolved
|
||||
from supervisor.dbus.systemd import Systemd
|
||||
from supervisor.dbus.timedate import TimeDate
|
||||
from supervisor.docker import DockerAPI
|
||||
@@ -178,11 +179,17 @@ async def systemd(dbus: DBus) -> Systemd:
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
async def os_agent(dbus: DBus) -> Systemd:
|
||||
async def os_agent(dbus: DBus) -> OSAgent:
|
||||
"""Mock OSAgent."""
|
||||
yield await mock_dbus_interface(dbus, OSAgent())
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
async def resolved(dbus: DBus) -> Resolved:
|
||||
"""Mock REsolved."""
|
||||
yield await mock_dbus_interface(dbus, Resolved())
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
async def coresys(loop, docker, network_manager, aiohttp_client, run_dir) -> CoreSys:
|
||||
"""Create a CoreSys Mock."""
|
||||
|
||||
Reference in New Issue
Block a user