From 09c4332fbac98abccba0171cfc05d485410dae09 Mon Sep 17 00:00:00 2001 From: technyon Date: Sat, 11 Nov 2023 18:56:35 +0100 Subject: [PATCH] another HA discovery fix --- Config.h | 2 +- Network.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Config.h b/Config.h index 85d8905..70b30b3 100644 --- a/Config.h +++ b/Config.h @@ -1,6 +1,6 @@ #pragma once -#define NUKI_HUB_VERSION "8.27" +#define NUKI_HUB_VERSION "8.27-pre-1" #define MQTT_QOS_LEVEL 1 #define MQTT_CLEAN_SESSIONS false diff --git a/Network.cpp b/Network.cpp index 18e2e2b..073fe9f 100644 --- a/Network.cpp +++ b/Network.cpp @@ -1088,7 +1088,7 @@ void Network::publishHASSConfigKeypadAttemptInfo(char *deviceType, const char *b "diagnostic", "", { { "ic", "mdi:drag-vertical" }, - { "value_template", "{{ (value_json|selectattr('type', 'eq', 'KeypadAction')|first).completionStatus }}" }}); + { "value_template", "{{ (value_json|selectattr('type', 'eq', 'KeypadAction')|first|default).completionStatus|default }}" }}); } void Network::publishHASSWifiRssiConfig(char *deviceType, const char *baseTopic, char *name, char *uidString)