Fix `type` "Unknown" for `lights` resource for coordinator
* Update light_node.cpp
Don't restore the `type` value of a `lights` resource from the database, as it's already set when (re-) creating the resource on startup.  See
* Update light_node.cpp
Check for `"Unknown"`.
@@ -736,6 +736,11 @@ void LightNode::jsonToResourceItems(const QString &json)
if (map.contains(QLatin1String(key)))
{
+ if (item->descriptor().suffix == RAttrType && map[key] == QLatin1String("Unknown"))
+ {
+ // type is set in setHaEndpoint()
+ continue;
+ }
item->setValue(map[key]);
item->setTimeStamps(dt);
}
