Skip to content

Commit a190f27

Browse files
authored
Merge pull request #2 from home-assistant-libs/addon-disable-boot-at-startup
Add boot_config and enum with new manual_only
2 parents 3ab1add + 240bbba commit a190f27

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

aiohasupervisor/models/__init__.py

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
from aiohasupervisor.models.addons import (
44
AddonBoot,
5+
AddonBootConfig,
56
AddonsConfigValidate,
67
AddonsOptions,
78
AddonsSecurityOptions,
@@ -42,6 +43,7 @@
4243
"AvailableUpdate",
4344
"AddonStage",
4445
"AddonBoot",
46+
"AddonBootConfig",
4547
"CpuArch",
4648
"Capability",
4749
"AppArmor",

aiohasupervisor/models/addons.py

+9
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,14 @@ class AddonStage(StrEnum):
2020
DEPRECATED = "deprecated"
2121

2222

23+
class AddonBootConfig(StrEnum):
24+
"""AddonBootConfig type."""
25+
26+
AUTO = "auto"
27+
MANUAL = "manual"
28+
MANUAL_ONLY = "manual_only"
29+
30+
2331
class AddonBoot(StrEnum):
2432
"""AddonBoot type."""
2533

@@ -197,6 +205,7 @@ class InstalledAddonComplete(
197205
dns: list[str]
198206
protected: bool
199207
boot: AddonBoot
208+
boot_config: AddonBootConfig
200209
options: dict[str, Any]
201210
schema: list[dict[str, Any]] | None
202211
machine: list[str]

tests/fixtures/addons_info.json

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"protected": true,
1515
"rating": 7,
1616
"boot": "auto",
17+
"boot_config": "auto",
1718
"options": {
1819
"authorized_keys": [],
1920
"password": "",

0 commit comments

Comments
 (0)