diff --git a/custom_components/notify_mqtt/notify.py b/custom_components/notify_mqtt/notify.py index 5dba716..6c5b4c9 100644 --- a/custom_components/notify_mqtt/notify.py +++ b/custom_components/notify_mqtt/notify.py @@ -52,4 +52,4 @@ async def async_send_message(self, message, **kwargs): dto.update(data) topic_message = json.dumps(dto) - self.hass.components.mqtt.publish(self.topic, topic_message) + self.hass.components.mqtt.publish(self.hass, self.topic, topic_message)