From a2db56e7044d2bd4c52ea8dc500fa9b18e0aebc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Bachmann?= Date: Mon, 15 Jun 2026 09:57:12 +0000 Subject: [PATCH] custom_components/whatsapp_bridge_integration/__init__.py aktualisiert --- custom_components/whatsapp_bridge_integration/__init__.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/custom_components/whatsapp_bridge_integration/__init__.py b/custom_components/whatsapp_bridge_integration/__init__.py index 6f4a936..bd279dd 100644 --- a/custom_components/whatsapp_bridge_integration/__init__.py +++ b/custom_components/whatsapp_bridge_integration/__init__.py @@ -40,16 +40,18 @@ async def async_setup_entry(hass: HomeAssistant, entry): name=f"WhatsApp {entry.title}", manufacturer="Bahmcloud", model="Kontakt-Endpunkt", - sw_version="0.2.3", + sw_version="0.2.4", ) - # 3. Zentralen System-Hub VOLLKOMMEN UNABHÄNGIG anlegen (ohne feste config_entry_id Bindung) + # 3. Zentralen System-Hub anlegen mit erzwungener config_entry_id Bindung (HA Core Anforderung) + # Nutzt Multi-Entry-Zusammenführung über den fixen "global_bridge_hub" Identifier. device_registry.async_get_or_create( + config_entry_id=entry.entry_id, identifiers={(DOMAIN, "global_bridge_hub")}, name="WhatsApp Bridge Hub", manufacturer="Bahmcloud", model="Bridge Server", - sw_version="0.2.3", + sw_version="0.2.4", ) # Forward the setup to the sensor platform to create entities