From 01576fdb22b8c69c504813c8e8ecb80efbbaaaf4 Mon Sep 17 00:00:00 2001 From: Cyrill Raccaud Date: Sun, 8 Sep 2024 16:44:22 +0200 Subject: [PATCH] fix discovery for stats --- systemctl2mqtt/systemctl2mqtt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/systemctl2mqtt/systemctl2mqtt.py b/systemctl2mqtt/systemctl2mqtt.py index 8e246d0..796123b 100755 --- a/systemctl2mqtt/systemctl2mqtt.py +++ b/systemctl2mqtt/systemctl2mqtt.py @@ -701,7 +701,7 @@ def _register_service(self, service_entry: ServiceEvent) -> None: "icon": icon, "payload_on": None, "payload_off": None, - "json_attributes_topic": None, + "json_attributes_topic": stats_topic, "device_class": device_class, "device": self._device_definition(service_entry), "qos": self.cfg["mqtt_qos"],