mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-04-19 18:57:16 +00:00

* Migrate to Ruff for lint and format * Fix pylint issues * DBus property sets into normal awaitable methods * Fix tests relying on separate tasks in connect * Fixes from feedback
21 lines
498 B
Python
21 lines
498 B
Python
"""Mock of OS Agent Boards Supervised dbus service."""
|
|
|
|
from .base import DBusServiceMock
|
|
|
|
BUS_NAME = "io.hass.os"
|
|
|
|
|
|
def setup(object_path: str | None = None) -> DBusServiceMock:
|
|
"""Create dbus mock object."""
|
|
return Supervised()
|
|
|
|
|
|
class Supervised(DBusServiceMock):
|
|
"""Supervised mock.
|
|
|
|
gdbus introspect --system --dest io.hass.os --object-path /io/hass/os/Boards/Supervised
|
|
"""
|
|
|
|
object_path = "/io/hass/os/Boards/Supervised"
|
|
interface = "io.hass.os.Boards.Supervised"
|