Skip to content

Commit

Permalink
Merge pull request #38 from P-Storm/fix/subscription_error
Browse files Browse the repository at this point in the history
Multiple automation triggered with multiple B+
  • Loading branch information
koenhendriks authored Jan 18, 2024
2 parents cc0cc2c + 8573ed9 commit 163d161
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/button_plus/coordinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 """
Expand Down

0 comments on commit 163d161

Please sign in to comment.