From 7a2038e1242ec2c01049297f8bb6949b755a6054 Mon Sep 17 00:00:00 2001 From: Proddy Date: Sun, 29 Jan 2023 12:09:54 +0100 Subject: [PATCH] uptime should be a string --- src/mqtt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mqtt.cpp b/src/mqtt.cpp index db2579432..e414daa1b 100644 --- a/src/mqtt.cpp +++ b/src/mqtt.cpp @@ -646,7 +646,7 @@ void Mqtt::ha_status() { } publish_system_ha_sensor_config(DeviceValueType::STRING, "EMS Bus", "bus_status", DeviceValueUOM::NONE); - publish_system_ha_sensor_config(DeviceValueType::INT, "Uptime", "uptime", DeviceValueUOM::NONE); + publish_system_ha_sensor_config(DeviceValueType::STRING, "Uptime", "uptime", DeviceValueUOM::NONE); publish_system_ha_sensor_config(DeviceValueType::INT, "Uptime (sec)", "uptime_sec", DeviceValueUOM::SECONDS); publish_system_ha_sensor_config(DeviceValueType::BOOL, "NTP status", "ntp_status", DeviceValueUOM::CONNECTIVITY); publish_system_ha_sensor_config(DeviceValueType::INT, "Free memory", "freemem", DeviceValueUOM::KB);