From d3015878c5797ba6a642bc44fdd1bb993a3d297d Mon Sep 17 00:00:00 2001 From: Stephan Hadinger Date: Tue, 9 Mar 2021 23:05:12 +0100 Subject: [PATCH] Fix ZbScan json output #11264 --- tasmota/xdrv_23_zigbee_8_parsers.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasmota/xdrv_23_zigbee_8_parsers.ino b/tasmota/xdrv_23_zigbee_8_parsers.ino index 083e6c966..0a5fe2e2d 100644 --- a/tasmota/xdrv_23_zigbee_8_parsers.ino +++ b/tasmota/xdrv_23_zigbee_8_parsers.ino @@ -190,7 +190,7 @@ int32_t EZSP_EnergyScanComplete(int32_t res, const SBuffer &buf) { // Dump energu scan results // void EnergyScanResults(void) { - Response_P(PSTR("{\"" D_JSON_ZIGBEE_SCAN "\":[")); + Response_P(PSTR("{\"" D_JSON_ZIGBEE_SCAN "\":{")); for (uint32_t i = 0; i < USE_ZIGBEE_CHANNEL_COUNT; i++) { int8_t energy = zigbee.energy[i]; @@ -210,7 +210,7 @@ void EnergyScanResults(void) { AddLog(LOG_LEVEL_INFO, PSTR(D_LOG_ZIGBEE "Channel %2d: %s"), i + USE_ZIGBEE_CHANNEL_MIN, bar_str); } - ResponseAppend_P(PSTR("]}")); + ResponseAppend_P(PSTR("}}")); MqttPublishPrefixTopicRulesProcess_P(RESULT_OR_TELE, PSTR(D_JSON_ZIGBEE_STATE)); }