generic support for using device's name
This commit is contained in:
parent
a4b1e78eef
commit
fd2a7a25b2
@ -219,7 +219,6 @@ namespace Ha {
|
|||||||
|
|
||||||
void buildConfig(JsonDocument& jsonDoc) override {
|
void buildConfig(JsonDocument& jsonDoc) override {
|
||||||
Command::buildConfig(jsonDoc);
|
Command::buildConfig(jsonDoc);
|
||||||
jsonDoc["name"] = nullptr;
|
|
||||||
// jsonDoc["retain"] = true;
|
// jsonDoc["retain"] = true;
|
||||||
if (stateTopic[0]) jsonDoc["state_topic"] = stateTopic;
|
if (stateTopic[0]) jsonDoc["state_topic"] = stateTopic;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user