diff --git a/Config.h b/Config.h index dceb52a..339bd9b 100644 --- a/Config.h +++ b/Config.h @@ -1,6 +1,6 @@ #pragma once -#define NUKI_HUB_VERSION "8.9-json-1" +#define NUKI_HUB_VERSION "8.9-json-2" #define MQTT_QOS_LEVEL 1 #define MQTT_CLEAN_SESSIONS false \ No newline at end of file diff --git a/Network.cpp b/Network.cpp index e156427..a932787 100644 --- a/Network.cpp +++ b/Network.cpp @@ -581,6 +581,7 @@ void Network::publishHASSConfig(char* deviceType, const char* baseTopic, char* n _device->mqttPublish(path.c_str(), MQTT_QOS_LEVEL, true, jsonOut); + delete jsonOut; // Battery critical publishHassTopic("binary_sensor",