_DEVICE unfied

This commit is contained in:
2026-04-13 21:55:03 +02:00
parent 297f0050e3
commit 865e6c2bf8

View File

@@ -675,13 +675,7 @@ def check_mqtt():
def publish_discovery(client): def publish_discovery(client):
"""Publish all HA MQTT discovery payloads for gauges and LEDs.""" """Publish all HA MQTT discovery payloads for gauges and LEDs."""
_dev_ref = { _dev_ref = _DEVICE
"identifiers": [MQTT_CLIENT_ID],
"name": DEVICE_NAME,
"model": DEVICE_MODEL,
"manufacturer": DEVICE_MFR,
"suggested_area": DEVICE_AREA,
}
for i, g in enumerate(gauges): for i, g in enumerate(gauges):
gt = gauge_topics[i] gt = gauge_topics[i]