mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-08 17:56:33 +00:00
Job conditions take a list (#3949)
This commit is contained in:
parent
9da4ea20a9
commit
1f7c067c90
@ -114,7 +114,7 @@ class NetworkManager(CoreSysAttributes):
|
||||
self.sys_dbus.network.interfaces[inet_name]
|
||||
)
|
||||
|
||||
@Job(conditions=JobCondition.HOST_NETWORK)
|
||||
@Job(conditions=[JobCondition.HOST_NETWORK])
|
||||
async def load(self):
|
||||
"""Load network information and reapply defaults over dbus."""
|
||||
# Apply current settings on each interface so OS can update any out of date defaults
|
||||
|
@ -422,7 +422,7 @@ async def test_supervisor_updated(coresys: CoreSys):
|
||||
"""Initialize the test class."""
|
||||
self.coresys = coresys
|
||||
|
||||
@Job(conditions=JobCondition.SUPERVISOR_UPDATED)
|
||||
@Job(conditions=[JobCondition.SUPERVISOR_UPDATED])
|
||||
async def execute(self) -> bool:
|
||||
"""Execute the class method."""
|
||||
return True
|
||||
@ -447,7 +447,7 @@ async def test_plugins_updated(coresys: CoreSys):
|
||||
"""Initialize the test class."""
|
||||
self.coresys = coresys
|
||||
|
||||
@Job(conditions=JobCondition.PLUGINS_UPDATED)
|
||||
@Job(conditions=[JobCondition.PLUGINS_UPDATED])
|
||||
async def execute(self) -> bool:
|
||||
"""Execute the class method."""
|
||||
return True
|
||||
@ -477,7 +477,7 @@ async def test_auto_update(coresys: CoreSys):
|
||||
"""Initialize the test class."""
|
||||
self.coresys = coresys
|
||||
|
||||
@Job(conditions=JobCondition.AUTO_UPDATE)
|
||||
@Job(conditions=[JobCondition.AUTO_UPDATE])
|
||||
async def execute(self) -> bool:
|
||||
"""Execute the class method."""
|
||||
return True
|
||||
|
Loading…
x
Reference in New Issue
Block a user