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(); }