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