Fixed linting issues
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2026-09-12 17:35:04 -04:00
parent d607a1ed29
commit cc022e4bf8
+9 -7
View File
@@ -57,13 +57,15 @@ def register_ha_discovery(mqtt, sensor_type):
] ]
if sensor_type == "bme280": if sensor_type == "bme280":
configs.append({ configs.append(
"id": "pressure", {
"name": "Pressure", "id": "pressure",
"unit": "hPa", "name": "Pressure",
"cls": "atmospheric_pressure", "unit": "hPa",
"val_tpl": "{{ value_json.pressure }}", "cls": "atmospheric_pressure",
}) "val_tpl": "{{ value_json.pressure }}",
}
)
for c in configs: for c in configs:
topic = f"homeassistant/sensor/{Config.NODE_ID}/{c['id']}/config" topic = f"homeassistant/sensor/{Config.NODE_ID}/{c['id']}/config"