From 0d574b8da1e85245e2e6ff84875feb0e91bab11c Mon Sep 17 00:00:00 2001 From: Nicu Hodos Date: Thu, 16 May 2024 10:26:15 +0200 Subject: [PATCH] return string when building protocol ids - avoid unused pointers --- gateway/include/ha.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gateway/include/ha.h b/gateway/include/ha.h index 4ec2a45..ad354ff 100644 --- a/gateway/include/ha.h +++ b/gateway/include/ha.h @@ -233,11 +233,11 @@ namespace Ha { const char* unitMeasure = nullptr; const char* valueTemplate = nullptr; - Sensor() : Component(name, Protocol_2::buildId(id), "sensor") { + Sensor() : Component(name, id, "sensor") { withStateTopic(); } - Sensor(const char* name, const char* id) : Component(name, Protocol_2::buildId(id), "sensor") { + Sensor(const char* name, const char* id) : Component(name, id, "sensor") { withStateTopic(); }