components: correct imports
All imports must now be relative to work correctly with the moonraker parent package. Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
@@ -13,7 +13,7 @@ import errno
|
||||
import logging
|
||||
import asyncio
|
||||
from collections import deque
|
||||
from utils import ServerError
|
||||
from ..utils import ServerError
|
||||
|
||||
# Annotation imports
|
||||
from typing import (
|
||||
@@ -28,11 +28,9 @@ from typing import (
|
||||
Coroutine,
|
||||
)
|
||||
if TYPE_CHECKING:
|
||||
from confighelper import ConfigHelper
|
||||
from . import klippy_apis
|
||||
from .file_manager import file_manager
|
||||
APIComp = klippy_apis.KlippyAPI
|
||||
FMComp = file_manager.FileManager
|
||||
from ..confighelper import ConfigHelper
|
||||
from .klippy_apis import KlippyAPI as APIComp
|
||||
from .file_manager.file_manager import FileManager as FMComp
|
||||
FlexCallback = Callable[..., Optional[Coroutine]]
|
||||
|
||||
MIN_EST_TIME = 10.
|
||||
|
Reference in New Issue
Block a user