Commit 5688d117 authored by Michael Ott's avatar Michael Ott

Set mqttsuffix from sensor name if it hasn't been set

parent a77e7ee8
......@@ -320,6 +320,9 @@ class ConfiguratorTemplate : public ConfiguratorInterface {
}
}
}
if (sBase.getMqtt().size() == 0) {
sBase.setMqtt(sBase.getName());
}
sensorBase(sBase, config);
return true;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment