From a89ff439001bdb9d74ea0299f82561e14a8d71a7 Mon Sep 17 00:00:00 2001 From: Northern Man <19808920+NorthernMan54@users.noreply.github.com> Date: Wed, 25 Sep 2024 13:09:29 -0400 Subject: [PATCH] [DISC] Warning message for discovery prefix change (#2066) * discovery_Topic * Remove Log.notice(F("type: %s" CR), type.c_str()); --- main/ZgatewayRTL_433.ino | 1 - main/config_mqttDiscovery.h | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/main/ZgatewayRTL_433.ino b/main/ZgatewayRTL_433.ino index b4fdd72..f46686d 100644 --- a/main/ZgatewayRTL_433.ino +++ b/main/ZgatewayRTL_433.ino @@ -281,7 +281,6 @@ void rtl_433_Callback(char* message) { String topic = subjectRTL_433toMQTT; String model = RFrtl_433_ESPdata["model"]; String type = RFrtl_433_ESPdata["type"]; - Log.notice(F("type: %s" CR), type.c_str()); String uniqueid; const char naming_keys[5][8] = {"type", "model", "subtype", "channel", "id"}; // from rtl_433_mqtt_hass.py diff --git a/main/config_mqttDiscovery.h b/main/config_mqttDiscovery.h index 5e67fce..65ee871 100644 --- a/main/config_mqttDiscovery.h +++ b/main/config_mqttDiscovery.h @@ -113,7 +113,8 @@ void announceDeviceTrigger(bool use_gateway_info, char* device_mac); #ifdef discovery_Topic //Deprecated - use discovery_Prefix instead -# define discovery_Prefix "homeassistant" +# pragma message("compiler directive discovery_Topic is deprecated, use discovery_Prefix instead") +# define discovery_Prefix discovery_Topic #endif #ifndef discovery_Prefix # define discovery_Prefix "homeassistant"