mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-08-20 13:17:35 +00:00
Add JobManager and Job decorator (#2225)
* Adds condition decorator to block execution that require internet * Fix exsisting tests * Add internet state to network info * Add healthy condition * Add tests * It's all changed * rename
This commit is contained in:
@ -10,6 +10,8 @@ import sentry_sdk
|
||||
from sentry_sdk.integrations.aiohttp import AioHttpIntegration
|
||||
from sentry_sdk.integrations.logging import LoggingIntegration
|
||||
|
||||
from supervisor.job import JobManager
|
||||
|
||||
from .addons import AddonManager
|
||||
from .api import RestAPI
|
||||
from .arch import CpuArch
|
||||
@ -55,6 +57,7 @@ async def initialize_coresys() -> CoreSys:
|
||||
|
||||
# Initialize core objects
|
||||
coresys.resolution = ResolutionManager(coresys)
|
||||
coresys.jobs = JobManager(coresys)
|
||||
coresys.core = Core(coresys)
|
||||
coresys.plugins = PluginManager(coresys)
|
||||
coresys.arch = CpuArch(coresys)
|
||||
|
Reference in New Issue
Block a user