From c39a948c59310d77dd76eaa165f1ac4bd51c188a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Bachmann?= Date: Thu, 15 Jan 2026 13:09:32 +0000 Subject: [PATCH] custom_components/bahmcloud_store/__init__.py aktualisiert --- custom_components/bahmcloud_store/__init__.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/custom_components/bahmcloud_store/__init__.py b/custom_components/bahmcloud_store/__init__.py index d5e5edf..fb0d912 100644 --- a/custom_components/bahmcloud_store/__init__.py +++ b/custom_components/bahmcloud_store/__init__.py @@ -4,7 +4,6 @@ import logging from homeassistant.core import HomeAssistant -from .const import DOMAIN from .core import BCSCore from .views import ( StaticAssetsView, @@ -16,6 +15,8 @@ from .views import ( _LOGGER = logging.getLogger(__name__) +DOMAIN = "bahmcloud_store" + async def async_setup(hass: HomeAssistant, config: dict) -> bool: core = BCSCore(hass) @@ -31,7 +32,9 @@ async def async_setup(hass: HomeAssistant, config: dict) -> bool: hass.http.register_view(BCSReadmeView(core)) hass.http.register_view(BCSRefreshView(core)) - # Panel registration stays in your existing file (unchanged) if you already have it elsewhere. - # If you register the panel here already, keep your current working code. + # 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