[DISC] Warning message for discovery prefix change (#2066)

* discovery_Topic

* Remove  Log.notice(F("type: %s" CR), type.c_str());
This commit is contained in:
Northern Man authored and GitHub committed 2024-09-25 12:09:29 -05:00
1 parent 6fa725d633
commit a89ff43900
2 files changed
+2 -2

No files matched your search

-1
View File
@@ -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
+2 -1
View File
@@ -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"