From 15349d93a2b3aaa7b8c9793d720e3f4ec12849f4 Mon Sep 17 00:00:00 2001 From: bahmcloud Date: Thu, 15 Jan 2026 06:15:36 +0000 Subject: [PATCH] custom_components/bahmcloud_store/views.py aktualisiert --- custom_components/bahmcloud_store/views.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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):