Fix creation of empty light names
@@ -1127,6 +1127,9 @@ void DeRestPluginPrivate::addLightNode(const deCONZ::Node *node)
}
}
+ if (lightNode.name().isEmpty())
+ lightNode.setName(QString("Light %1").arg(lightNode.id()));
+
if (!lightNode.name().isEmpty())
{ q->nodeUpdated(lightNode.address().ext(), QLatin1String("name"), lightNode.name()); }
