Skip to content

Commit

Permalink
Add system managed fields (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdegat01 authored Nov 13, 2024
1 parent be9be27 commit 9fd7fdd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions aiohasupervisor/models/addons.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,8 @@ class InstalledAddonComplete(
ip_address: IPv4Address
watchdog: bool
devices: list[str]
system_managed: bool
system_managed_config_entry: str | None


@dataclass(frozen=True, slots=True)
Expand Down
4 changes: 3 additions & 1 deletion tests/fixtures/addons_info.json
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@
"version": "9.14.0",
"update_available": false,
"watchdog": false,
"devices": []
"devices": [],
"system_managed": false,
"system_managed_config_entry": null
}
}
2 changes: 2 additions & 0 deletions tests/test_addons.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ async def test_addons_info(
assert "not_real" in addon.privileged
assert addon.supervisor_api is True
assert addon.supervisor_role == SupervisorRole.MANAGER
assert addon.system_managed is False
assert addon.system_managed_config_entry is None


async def test_addons_uninstall(
Expand Down

0 comments on commit 9fd7fdd

Please sign in to comment.