Fix check light.type attribute is initialized
Since LightNode::type() returns a reference to a QString the length()
or isEmpty() should be checked.
Might be related to
@@ -351,7 +351,7 @@ void LightNode::setHaEndpoint(const deCONZ::SimpleDescriptor &endpoint)
{
return; // wait until known
}
- isInitialized = type() != nullptr;
+ isInitialized = type().length() > 0;
}
// initial setup
