Skip to content

Commit

Permalink
fix discovery for stats
Browse files Browse the repository at this point in the history
  • Loading branch information
miaucl committed Sep 8, 2024
1 parent f614c85 commit 01576fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion systemctl2mqtt/systemctl2mqtt.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down

0 comments on commit 01576fd

Please sign in to comment.