mirror of
https://github.com/home-assistant/supervisor.git
synced 2026-02-22 18:55:21 +00:00
* OS-Agent support * add agent to host feature * Add support for os-agent on devcontainer * Rename core * fix tests * add setter * add cgroup / apparmor * all interfaces added * fix import * Add tests * More tests * Finish tests * reformating xml files * fix doc string * address comments * change return value * fix tests * Update supervisor/dbus/agent/__init__.py Co-authored-by: Joakim Sørensen <joasoe@gmail.com> * Update scripts/supervisor.sh Co-authored-by: Joakim Sørensen <joasoe@gmail.com> Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
16 lines
430 B
Python
16 lines
430 B
Python
"""Test OSAgent dbus interface."""
|
|
|
|
from supervisor.coresys import CoreSys
|
|
|
|
|
|
async def test_dbus_osagent(coresys: CoreSys):
|
|
"""Test coresys dbus connection."""
|
|
assert coresys.dbus.agent.version is None
|
|
assert coresys.dbus.agent.diagnostics is None
|
|
|
|
await coresys.dbus.agent.connect()
|
|
await coresys.dbus.agent.update()
|
|
|
|
assert coresys.dbus.agent.version == "1.1.0"
|
|
assert coresys.dbus.agent.diagnostics
|