From ee87deb2d0383367ddbae6b48b6d0b0eadc19c90 Mon Sep 17 00:00:00 2001 From: Nicu Hodos Date: Tue, 14 May 2024 08:05:08 +0200 Subject: [PATCH] disable retain for command mesages --- gateway/include/ha.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gateway/include/ha.h b/gateway/include/ha.h index 570621c..61515cc 100644 --- a/gateway/include/ha.h +++ b/gateway/include/ha.h @@ -162,7 +162,7 @@ namespace Ha { Command::buildConfig(jsonDoc); jsonDoc["name"] = nullptr; jsonDoc["device_class"] = "outlet"; - jsonDoc["retain"] = true; + // jsonDoc["retain"] = true; if (stateTopic[0]) jsonDoc["state_topic"] = stateTopic; }