From 3f07c09c369c73383ae56620bf1975309b086e7d Mon Sep 17 00:00:00 2001 From: bahmcloud Date: Thu, 15 Jan 2026 07:05:09 +0000 Subject: [PATCH] custom_components/bahmcloud_store/__init__.py aktualisiert --- custom_components/bahmcloud_store/__init__.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/custom_components/bahmcloud_store/__init__.py b/custom_components/bahmcloud_store/__init__.py index d113512..7fed5fd 100644 --- a/custom_components/bahmcloud_store/__init__.py +++ b/custom_components/bahmcloud_store/__init__.py @@ -33,18 +33,19 @@ async def async_setup(hass: HomeAssistant, config: dict) -> bool: await core.register_http_views() # Register custom panel (no iframe; uses hass.callApi) + # NOTE: cache-busting query updated for 0.3.0 await async_register_panel( hass, frontend_url_path="bahmcloud-store", webcomponent_name="bahmcloud-store-panel", - module_url="/api/bahmcloud_store_static/panel.js?v=1", + module_url="/api/bahmcloud_store_static/panel.js?v=3", sidebar_title="Bahmcloud Store", sidebar_icon="mdi:store", require_admin=True, config={}, ) - # Initial refresh (index + custom repos) + # Initial refresh (index + custom repos + enrichment) try: await core.refresh() except BCSError as e: @@ -61,7 +62,7 @@ async def async_setup(hass: HomeAssistant, config: dict) -> bool: interval = timedelta(seconds=int(core.refresh_seconds or 300)) async_track_time_interval(hass, periodic, interval) - # Update platform is a stub in 0.2.0 (keeps integration stable) + # Update platform is a stub in 0.3.0 (keeps integration stable) await async_load_platform(hass, Platform.UPDATE, DOMAIN, {}, config) return True