Skip to content

Commit 4dc3415

Browse files
committed
Add addon startup to model
1 parent e779039 commit 4dc3415

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

aiohasupervisor/models/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
AddonsSecurityOptions,
99
AddonsStats,
1010
AddonStage,
11+
AddonStartup,
1112
AddonState,
1213
AddonsUninstall,
1314
AppArmor,
@@ -132,6 +133,7 @@
132133
"RootInfo",
133134
"AvailableUpdate",
134135
"AddonStage",
136+
"AddonStartup",
135137
"AddonBoot",
136138
"AddonBootConfig",
137139
"CpuArch",

aiohasupervisor/models/addons.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,16 @@ class AddonState(StrEnum):
9999
ERROR = "error"
100100

101101

102+
class AddonStartup(StrEnum):
103+
"""AddonStartup type."""
104+
105+
INITIALIZE = "initialize"
106+
SYSTEM = "system"
107+
SERVICES = "services"
108+
APPLICATION = "application"
109+
ONCE = "once"
110+
111+
102112
# --- OBJECTS ----
103113

104114

@@ -232,6 +242,7 @@ class InstalledAddonComplete(
232242
udev: bool
233243
video: bool
234244
audio: bool
245+
startup: AddonStartup
235246
services: list[str]
236247
discovery: list[str]
237248
translations: dict[str, Any]

0 commit comments

Comments
 (0)