custom_components/bahmcloud_store/views.py aktualisiert

This commit is contained in:
2026-01-15 06:15:36 +00:00
parent 124693e545
commit 15349d93a2

View File

@@ -1,10 +1,12 @@
from __future__ import annotations from __future__ import annotations
from pathlib import Path from pathlib import Path
from typing import TYPE_CHECKING
from aiohttp import web from aiohttp import web
from homeassistant.components.http import HomeAssistantView from homeassistant.components.http import HomeAssistantView
if TYPE_CHECKING:
from .core import BCSCore from .core import BCSCore
@@ -49,7 +51,7 @@ class BCSApiView(HomeAssistantView):
name = "bcs_api" name = "bcs_api"
url = "/api/bcs" url = "/api/bcs"
def __init__(self, core: BCSCore) -> None: def __init__(self, core: "BCSCore") -> None:
self.core = core self.core = core
async def get(self, request): async def get(self, request):