From a9a681d801824316ef573f73d877e45967a30d7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Bachmann?= Date: Thu, 15 Jan 2026 17:06:43 +0000 Subject: [PATCH] custom_components/bahmcloud_store/views.py aktualisiert --- custom_components/bahmcloud_store/views.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/custom_components/bahmcloud_store/views.py b/custom_components/bahmcloud_store/views.py index bfb323b..5c5c618 100644 --- a/custom_components/bahmcloud_store/views.py +++ b/custom_components/bahmcloud_store/views.py @@ -273,14 +273,12 @@ class BCSApiView(HomeAssistantView): if action == "refresh": _LOGGER.info("BCS manual refresh triggered via API") try: - await self.core.refresh() - self.core.signal_updated() + # Centralized service (same path as timer), includes logging and signal_updated + await self.core.full_refresh(source="manual") return web.json_response({"ok": True}) except Exception as e: _LOGGER.error("BCS manual refresh failed: %s", e) - return web.json_response( - {"ok": False, "message": "Refresh failed"}, status=500 - ) + return web.json_response({"ok": False, "message": "Refresh failed"}, status=500) # --- Existing JSON based operations --- try: