diff --git a/custom_components/bahmcloud_store/views.py b/custom_components/bahmcloud_store/views.py index eb1d7e8..2b49ced 100644 --- a/custom_components/bahmcloud_store/views.py +++ b/custom_components/bahmcloud_store/views.py @@ -1,11 +1,13 @@ from __future__ import annotations from pathlib import Path +from typing import TYPE_CHECKING from aiohttp import web from homeassistant.components.http import HomeAssistantView -from .core import BCSCore +if TYPE_CHECKING: + from .core import BCSCore class StaticAssetsView(HomeAssistantView): @@ -49,7 +51,7 @@ class BCSApiView(HomeAssistantView): name = "bcs_api" url = "/api/bcs" - def __init__(self, core: BCSCore) -> None: + def __init__(self, core: "BCSCore") -> None: self.core = core async def get(self, request):