return string when building protocol ids - avoid unused pointers
This commit is contained in:
parent
ae95b123ae
commit
0d574b8da1
@ -233,11 +233,11 @@ namespace Ha {
|
|||||||
const char* unitMeasure = nullptr;
|
const char* unitMeasure = nullptr;
|
||||||
const char* valueTemplate = nullptr;
|
const char* valueTemplate = nullptr;
|
||||||
|
|
||||||
Sensor() : Component(name, Protocol_2::buildId(id), "sensor") {
|
Sensor() : Component(name, id, "sensor") {
|
||||||
withStateTopic();
|
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();
|
withStateTopic();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user