update_manger: move module into its own package
This includes its specific configuration file. Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
parent
30155c4a8c
commit
03892a517e
|
@ -0,0 +1,15 @@
|
|||
# Package definition for the update_manager
|
||||
#
|
||||
# Copyright (C) 2021 Eric Callahan <arksine.code@gmail.com>
|
||||
#
|
||||
# This file may be distributed under the terms of the GNU GPLv3 license.
|
||||
|
||||
from __future__ import annotations
|
||||
from . import update_manager as um
|
||||
|
||||
from typing import TYPE_CHECKING
|
||||
if TYPE_CHECKING:
|
||||
from confighelper import ConfigHelper
|
||||
|
||||
def load_component(config: ConfigHelper) -> um.UpdateManager:
|
||||
return um.load_component(config)
|
|
@ -39,9 +39,9 @@ if TYPE_CHECKING:
|
|||
from confighelper import ConfigHelper
|
||||
from websockets import WebRequest
|
||||
from utils import ServerError
|
||||
from . import klippy_apis
|
||||
from . import shell_command
|
||||
from . import database
|
||||
from components import klippy_apis
|
||||
from components import shell_command
|
||||
from components import database
|
||||
APIComp = klippy_apis.KlippyAPI
|
||||
SCMDComp = shell_command.ShellCommandFactory
|
||||
DBComp = database.MoonrakerDatabase
|
Loading…
Reference in New Issue