custom_components/bahmcloud_store/views.py aktualisiert

This commit is contained in:
2026-01-15 07:06:47 +00:00
parent 5c47479f45
commit ce52920c6d

View File

@@ -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",
} }
) )