Fix: typo in HASS auto-discovery metadata for heap stats (#1274)

Fixes a copy and paste error in commit b3ee38b0 from when maxAlloc/minFree were renamed.
This commit is contained in:
ranma 2024-09-23 21:10:10 +02:00 committed by GitHub
parent 97f95f8a11
commit c16b3aa21b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -64,8 +64,8 @@ void MqttHandleHassClass::publishConfig()
publishDtuSensor("Temperature", "temperature", "diagnostic", "mdi:thermometer", "°C", "temperature");
publishDtuSensor("Heap Size", "", "diagnostic", "mdi:memory", "Bytes", "heap/size");
publishDtuSensor("Heap Free", "", "diagnostic", "mdi:memory", "Bytes", "heap/free");
publishDtuSensor("Largest Free Heap Block", "", "diagnostic", "mdi:memory", "Bytes", "heap/maxalloc`");
publishDtuSensor("Lifetime Minimum Free Heap", "", "diagnostic", "mdi:memory", "Bytes", "heap/minfree`");
publishDtuSensor("Largest Free Heap Block", "", "diagnostic", "mdi:memory", "Bytes", "heap/maxalloc");
publishDtuSensor("Lifetime Minimum Free Heap", "", "diagnostic", "mdi:memory", "Bytes", "heap/minfree");
publishDtuBinarySensor("Status", "connectivity", "diagnostic", config.Mqtt.Lwt.Value_Online, config.Mqtt.Lwt.Value_Offline, config.Mqtt.Lwt.Topic);
yield();