Skip to content

Commit 9fd7fdd

Browse files
authored
Add system managed fields (#28)
1 parent be9be27 commit 9fd7fdd

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

aiohasupervisor/models/addons.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,8 @@ class InstalledAddonComplete(
246246
ip_address: IPv4Address
247247
watchdog: bool
248248
devices: list[str]
249+
system_managed: bool
250+
system_managed_config_entry: str | None
249251

250252

251253
@dataclass(frozen=True, slots=True)

tests/fixtures/addons_info.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,8 @@
121121
"version": "9.14.0",
122122
"update_available": false,
123123
"watchdog": false,
124-
"devices": []
124+
"devices": [],
125+
"system_managed": false,
126+
"system_managed_config_entry": null
125127
}
126128
}

tests/test_addons.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ async def test_addons_info(
6262
assert "not_real" in addon.privileged
6363
assert addon.supervisor_api is True
6464
assert addon.supervisor_role == SupervisorRole.MANAGER
65+
assert addon.system_managed is False
66+
assert addon.system_managed_config_entry is None
6567

6668

6769
async def test_addons_uninstall(

0 commit comments

Comments
 (0)