From b7ed65b49d17aeea917917aa29236350964f29d9 Mon Sep 17 00:00:00 2001 From: bahmcloud Date: Thu, 15 Jan 2026 06:15:58 +0000 Subject: [PATCH] custom_components/bahmcloud_store/custom_repo_view.py aktualisiert --- custom_components/bahmcloud_store/custom_repo_view.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/custom_components/bahmcloud_store/custom_repo_view.py b/custom_components/bahmcloud_store/custom_repo_view.py index 348b4b2..0f0b3ca 100644 --- a/custom_components/bahmcloud_store/custom_repo_view.py +++ b/custom_components/bahmcloud_store/custom_repo_view.py @@ -1,8 +1,11 @@ from __future__ import annotations +from typing import TYPE_CHECKING + from homeassistant.components.http import HomeAssistantView -from .core import BCSCore +if TYPE_CHECKING: + from .core import BCSCore class BCSCustomRepoView(HomeAssistantView): @@ -13,7 +16,7 @@ class BCSCustomRepoView(HomeAssistantView): name = "bcs_custom_repo_api" url = "/api/bcs/custom_repo" - def __init__(self, core: BCSCore) -> None: + def __init__(self, core: "BCSCore") -> None: self.core = core async def delete(self, request):