From 92e5433165cdf97a6a788ddf2fd1743af197b6de Mon Sep 17 00:00:00 2001 From: proddy Date: Sat, 16 Nov 2024 14:48:23 +0100 Subject: [PATCH] change comment --- src/mqtt.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mqtt.cpp b/src/mqtt.cpp index 05d6ca612..edf5981b4 100644 --- a/src/mqtt.cpp +++ b/src/mqtt.cpp @@ -513,7 +513,7 @@ void Mqtt::on_connect() { // with disabled HA we subscribe and the broker sends all stored HA-emsesp-configs. // Around line 272 they are removed (search for "// remove HA topics if we don't use discover") // If HA is enabled the subscriptions are removed. - // As described in the doc (https://emsesp.github.io/docs/#/Troubleshooting?id=home-assistant): + // As described in the doc (https://docs.emsesp.org/Troubleshooting?id=home-assistant): // disable HA, wait 5 minutes (to allow the broker to send all), than reenable HA again. queue_subscribe_message(discovery_prefix_ + "/+/" + mqtt_basename_ + "/#"); } @@ -593,9 +593,9 @@ void Mqtt::ha_status() { publish_system_ha_sensor_config(DeviceValueType::INT8, "Tx reads", "txreads", DeviceValueUOM::NONE); publish_system_ha_sensor_config(DeviceValueType::INT8, "Tx writes", "txwrites", DeviceValueUOM::NONE); publish_system_ha_sensor_config(DeviceValueType::INT8, "Tx fails", "txfails", DeviceValueUOM::NONE); - publish_system_ha_sensor_config(DeviceValueType::INT16, "WiFi reconnects", "wificonnects", DeviceValueUOM::NONE); + publish_system_ha_sensor_config(DeviceValueType::INT16, "WiFi reconnects", "wifireconnects", DeviceValueUOM::NONE); - // This comes from the info MQTT topic + // This comes from the info MQTT topic - and handled in the publish_ha_sensor_config function publish_system_ha_sensor_config(DeviceValueType::STRING, "Version", "version", DeviceValueUOM::NONE); }