diff --git a/custom_components/bahmcloud_store/views.py b/custom_components/bahmcloud_store/views.py index 2b49ced..5009c3f 100644 --- a/custom_components/bahmcloud_store/views.py +++ b/custom_components/bahmcloud_store/views.py @@ -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(),