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