add missing delete
This commit is contained in:
2
Config.h
2
Config.h
@@ -1,6 +1,6 @@
|
|||||||
#pragma once
|
#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_QOS_LEVEL 1
|
||||||
#define MQTT_CLEAN_SESSIONS false
|
#define MQTT_CLEAN_SESSIONS false
|
||||||
@@ -581,6 +581,7 @@ void Network::publishHASSConfig(char* deviceType, const char* baseTopic, char* n
|
|||||||
|
|
||||||
_device->mqttPublish(path.c_str(), MQTT_QOS_LEVEL, true, jsonOut);
|
_device->mqttPublish(path.c_str(), MQTT_QOS_LEVEL, true, jsonOut);
|
||||||
|
|
||||||
|
delete jsonOut;
|
||||||
|
|
||||||
// Battery critical
|
// Battery critical
|
||||||
publishHassTopic("binary_sensor",
|
publishHassTopic("binary_sensor",
|
||||||
|
|||||||
Reference in New Issue
Block a user