From 97c9f01a0a9349acf6117647589b0cf6b8443be8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Bachmann?= Date: Thu, 15 Jan 2026 13:22:45 +0000 Subject: [PATCH] custom_components/bahmcloud_store/__init__.py aktualisiert --- custom_components/bahmcloud_store/__init__.py | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/custom_components/bahmcloud_store/__init__.py b/custom_components/bahmcloud_store/__init__.py index fb0d912..8f17fde 100644 --- a/custom_components/bahmcloud_store/__init__.py +++ b/custom_components/bahmcloud_store/__init__.py @@ -5,13 +5,7 @@ import logging from homeassistant.core import HomeAssistant from .core import BCSCore -from .views import ( - StaticAssetsView, - BCSApiView, - BCSCustomRepoView, - BCSReadmeView, - BCSRefreshView, -) +from .views import StaticAssetsView, BCSApiView, BCSCustomRepoView, BCSReadmeView _LOGGER = logging.getLogger(__name__) @@ -25,16 +19,10 @@ async def async_setup(hass: HomeAssistant, config: dict) -> bool: hass.data.setdefault(DOMAIN, {}) hass.data[DOMAIN]["core"] = core - # Register HTTP views + # HTTP views hass.http.register_view(StaticAssetsView()) hass.http.register_view(BCSApiView(core)) hass.http.register_view(BCSCustomRepoView(core)) hass.http.register_view(BCSReadmeView(core)) - hass.http.register_view(BCSRefreshView(core)) - - # IMPORTANT: - # Panel registration should remain as in your currently working version. - # If your panel registration is already inside BCSCore.async_setup(), - # do NOT duplicate it here to avoid double registration warnings. return True