add missing delete

This commit is contained in:
technyon
2023-02-19 17:11:36 +01:00
parent 2b7136331b
commit e78533146b
2 changed files with 2 additions and 1 deletions

View File

@@ -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

View File

@@ -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",