custom_components/bahmcloud_store/__init__.py aktualisiert
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user