custom_components/bahmcloud_store/__init__.py aktualisiert
This commit is contained in:
@@ -33,15 +33,15 @@ 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=3",
|
||||
module_url="/api/bahmcloud_store_static/panel.js?v=31",
|
||||
sidebar_title="Bahmcloud Store",
|
||||
sidebar_icon="mdi:store",
|
||||
require_admin=True,
|
||||
embed_iframe=False, # Critical for correct navigation/header behavior on mobile
|
||||
config={},
|
||||
)
|
||||
|
||||
@@ -62,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.3.0 (keeps integration stable)
|
||||
# Update platform is a stub in 0.3.x (keeps integration stable)
|
||||
await async_load_platform(hass, Platform.UPDATE, DOMAIN, {}, config)
|
||||
|
||||
return True
|
||||
|
||||
Reference in New Issue
Block a user