mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-22 16:46:29 +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")
|
||||
|
||||
@Job(
|
||||
conditions=[JobCondition.HAOS, JobCondition.INTERNET_SYSTEM],
|
||||
conditions=[
|
||||
JobCondition.HAOS,
|
||||
JobCondition.INTERNET_SYSTEM,
|
||||
JobCondition.RUNNING,
|
||||
],
|
||||
limit=JobExecutionLimit.ONCE,
|
||||
on_condition=HassOSJobError,
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user