.
This commit is contained in:
@@ -28,12 +28,15 @@ async def async_setup(hass: HomeAssistant, config: dict) -> bool:
|
||||
await core.async_initialize()
|
||||
|
||||
# Register HTTP views and panel
|
||||
from .views import StaticAssetsView, BCSApiView, BCSReadmeView, BCSCustomRepoView
|
||||
from .views import StaticAssetsView, BCSApiView, BCSReadmeView, BCSCustomRepoView, BCSInstallView, BCSUpdateView, BCSRestartView
|
||||
|
||||
hass.http.register_view(StaticAssetsView())
|
||||
hass.http.register_view(BCSApiView(core))
|
||||
hass.http.register_view(BCSReadmeView(core))
|
||||
hass.http.register_view(BCSCustomRepoView(core))
|
||||
hass.http.register_view(BCSInstallView(core))
|
||||
hass.http.register_view(BCSUpdateView(core))
|
||||
hass.http.register_view(BCSRestartView(core))
|
||||
|
||||
await async_register_panel(
|
||||
hass,
|
||||
@@ -63,4 +66,4 @@ async def async_setup(hass: HomeAssistant, config: dict) -> bool:
|
||||
interval_seconds = int(getattr(core, "refresh_seconds", 300) or 300)
|
||||
async_track_time_interval(hass, periodic, timedelta(seconds=interval_seconds))
|
||||
|
||||
return True
|
||||
return True
|
||||
Reference in New Issue
Block a user