Commit 22b41f9c authored by Michael Ott's avatar Michael Ott
Browse files

Set Entity name properly when using template

parent ff4ef910
...@@ -476,6 +476,7 @@ protected: ...@@ -476,6 +476,7 @@ protected:
auto it = _templateSensorEntitys.find(def.get().data()); auto it = _templateSensorEntitys.find(def.get().data());
if(it != _templateSensorEntitys.end()) { if(it != _templateSensorEntitys.end()) {
sEntity = *(it->second); sEntity = *(it->second);
sEntity.setName(config.data());
for(auto g : _templateSensorGroups) { for(auto g : _templateSensorGroups) {
if (it->second == g.second->getEntity()) { if (it->second == g.second->getEntity()) {
SG_Ptr group = std::make_shared<SGroup>(*(g.second)); SG_Ptr group = std::make_shared<SGroup>(*(g.second));
......
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