custom_components/bahmcloud_store/custom_repo_view.py aktualisiert
This commit is contained in:
@@ -1,7 +1,10 @@
|
|||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
|
from typing import TYPE_CHECKING
|
||||||
|
|
||||||
from homeassistant.components.http import HomeAssistantView
|
from homeassistant.components.http import HomeAssistantView
|
||||||
|
|
||||||
|
if TYPE_CHECKING:
|
||||||
from .core import BCSCore
|
from .core import BCSCore
|
||||||
|
|
||||||
|
|
||||||
@@ -13,7 +16,7 @@ class BCSCustomRepoView(HomeAssistantView):
|
|||||||
name = "bcs_custom_repo_api"
|
name = "bcs_custom_repo_api"
|
||||||
url = "/api/bcs/custom_repo"
|
url = "/api/bcs/custom_repo"
|
||||||
|
|
||||||
def __init__(self, core: BCSCore) -> None:
|
def __init__(self, core: "BCSCore") -> None:
|
||||||
self.core = core
|
self.core = core
|
||||||
|
|
||||||
async def delete(self, request):
|
async def delete(self, request):
|
||||||
|
|||||||
Reference in New Issue
Block a user