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"