Fix warnings
Don't call a null object.
Don't set to undefined since this just gets us: DeviceItem.qml:32:5: Unable to assign [undefined] to bool
Edited by Aleix Pol Gonzalez
Don't call a null object.
Don't set to undefined since this just gets us: DeviceItem.qml:32:5: Unable to assign [undefined] to bool