From 3f68c0001e1d90853d63e5155eebf3eb0c396d82 Mon Sep 17 00:00:00 2001 From: proddy Date: Mon, 28 Mar 2022 17:49:38 +0200 Subject: [PATCH] formatting --- src/mqtt.cpp | 6 +++--- src/web/WebCustomizationService.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mqtt.cpp b/src/mqtt.cpp index 284cf9748..63e52670a 100644 --- a/src/mqtt.cpp +++ b/src/mqtt.cpp @@ -988,7 +988,7 @@ void Mqtt::publish_ha_sensor_config(uint8_t type, // create the topic, depending on the type and whether the device entity is writable (a command) // https://developers.home-assistant.io/docs/core/entity char topic[MQTT_TOPIC_MAX_SIZE]; - // if it's a command then we can use Number, Switch. Otherwise stick to Sensor + // if it's a command then we can use Number, Switch, Select. Otherwise stick to Sensor if (has_cmd) { switch (type) { case DeviceValueType::INT: @@ -996,13 +996,13 @@ void Mqtt::publish_ha_sensor_config(uint8_t type, case DeviceValueType::SHORT: case DeviceValueType::USHORT: case DeviceValueType::ULONG: - // number - https://www.home-assistant.io/integrations/number.mqtt/ + // number - https://www.home-assistant.io/integrations/number.mqtt // https://developers.home-assistant.io/docs/core/entity/number snprintf(topic, sizeof(topic), "number/%s/%s/config", mqtt_base_.c_str(), uniq); break; case DeviceValueType::BOOL: - // switch - https://www.home-assistant.io/integrations/switch.mqtt/ + // switch - https://www.home-assistant.io/integrations/switch.mqtt snprintf(topic, sizeof(topic), "switch/%s/%s/config", mqtt_base_.c_str(), uniq); break; case DeviceValueType::ENUM: diff --git a/src/web/WebCustomizationService.cpp b/src/web/WebCustomizationService.cpp index 78a0616b5..89cc6af8a 100644 --- a/src/web/WebCustomizationService.cpp +++ b/src/web/WebCustomizationService.cpp @@ -208,7 +208,7 @@ void WebCustomizationService::device_entities(AsyncWebServerRequest * request, J request->send(response); } -// takes a list of masked ids send from the webUI +// takes a list of masked ids sent from the webUI // saves it in the customization service // and updates the entity list real-time void WebCustomizationService::masked_entities(AsyncWebServerRequest * request, JsonVariant & json) {