From 3773b0765024e463d0425edf17478e878b260274 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Bachmann?= Date: Thu, 15 Jan 2026 13:27:22 +0000 Subject: [PATCH] custom_components/bahmcloud_store/__init__.py aktualisiert --- custom_components/bahmcloud_store/__init__.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/custom_components/bahmcloud_store/__init__.py b/custom_components/bahmcloud_store/__init__.py index 8f17fde..1e51e54 100644 --- a/custom_components/bahmcloud_store/__init__.py +++ b/custom_components/bahmcloud_store/__init__.py @@ -1,11 +1,15 @@ from __future__ import annotations import logging - from homeassistant.core import HomeAssistant from .core import BCSCore -from .views import StaticAssetsView, BCSApiView, BCSCustomRepoView, BCSReadmeView +from .views import ( + StaticAssetsView, + BCSApiView, + BCSCustomRepoView, + BCSReadmeView, +) _LOGGER = logging.getLogger(__name__) @@ -13,13 +17,14 @@ DOMAIN = "bahmcloud_store" async def async_setup(hass: HomeAssistant, config: dict) -> bool: - core = BCSCore(hass) + # Übergib config korrekt an den Core + core = BCSCore(hass, config) await core.async_setup() hass.data.setdefault(DOMAIN, {}) hass.data[DOMAIN]["core"] = core - # HTTP views + # Register HTTP views (wie in der stabilen Version) hass.http.register_view(StaticAssetsView()) hass.http.register_view(BCSApiView(core)) hass.http.register_view(BCSCustomRepoView(core))