From 8573ed9163a4c23e3c79e01ba48ec7fc955b5c31 Mon Sep 17 00:00:00 2001 From: P-Storm Date: Wed, 17 Jan 2024 20:25:48 +0100 Subject: [PATCH] Potential fix for multiple topic subscribe --- custom_components/button_plus/coordinator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/button_plus/coordinator.py b/custom_components/button_plus/coordinator.py index fd2999d..d7d69c9 100644 --- a/custom_components/button_plus/coordinator.py +++ b/custom_components/button_plus/coordinator.py @@ -25,7 +25,7 @@ def __init__(self, hass: HomeAssistant, hub: ButtonPlusHub): self.hub = hub self._hass = hass self._mqtt_subscribed_buttons = False - self._mqtt_topic_buttons = "buttonplus/+/button/+/click" + self._mqtt_topic_buttons = f"buttonplus/{hub.hub_id}/button/+/click" async def _async_update_data(self): """Create MQTT subscriptions for buttonplus """