mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-23 17:16:33 +00:00
Add running job condition to OS update (#2976)
This commit is contained in:
parent
24aecdddf3
commit
b944b52b21
@ -161,7 +161,11 @@ class HassOS(CoreSysAttributes):
|
|||||||
await self.sys_host.services.restart("hassos-config.service")
|
await self.sys_host.services.restart("hassos-config.service")
|
||||||
|
|
||||||
@Job(
|
@Job(
|
||||||
conditions=[JobCondition.HAOS, JobCondition.INTERNET_SYSTEM],
|
conditions=[
|
||||||
|
JobCondition.HAOS,
|
||||||
|
JobCondition.INTERNET_SYSTEM,
|
||||||
|
JobCondition.RUNNING,
|
||||||
|
],
|
||||||
limit=JobExecutionLimit.ONCE,
|
limit=JobExecutionLimit.ONCE,
|
||||||
on_condition=HassOSJobError,
|
on_condition=HassOSJobError,
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user