custom_components/bahmcloud_store/views.py aktualisiert
This commit is contained in:
@@ -55,9 +55,7 @@ class BCSApiView(HomeAssistantView):
|
|||||||
self.core = core
|
self.core = core
|
||||||
|
|
||||||
async def get(self, request):
|
async def get(self, request):
|
||||||
# IMPORTANT:
|
# Refresh on-demand so the UI "Refresh" button updates immediately.
|
||||||
# Refresh on-demand so the UI "Refresh" button updates immediately,
|
|
||||||
# instead of waiting for the periodic refresh timer.
|
|
||||||
await self.core.refresh()
|
await self.core.refresh()
|
||||||
|
|
||||||
return self.json(
|
return self.json(
|
||||||
@@ -65,7 +63,7 @@ class BCSApiView(HomeAssistantView):
|
|||||||
"repos": self.core.list_repos_public(),
|
"repos": self.core.list_repos_public(),
|
||||||
"store_url": self.core.config.store_url,
|
"store_url": self.core.config.store_url,
|
||||||
"refresh_seconds": self.core.refresh_seconds,
|
"refresh_seconds": self.core.refresh_seconds,
|
||||||
"version": "0.2.0",
|
"version": "0.3.0",
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user