custom_components/bahmcloud_store/views.py aktualisiert
This commit is contained in:
@@ -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):
|
||||||
|
|||||||
Reference in New Issue
Block a user