don't add duplicate lights

master
Michael Zanetti 2018-11-30 23:34:34 +01:00
parent 2e751f44d8
commit 040746f37a
1 changed files with 5 additions and 0 deletions

View File

@ -1368,6 +1368,11 @@ bool DevicePluginPhilipsHue::lightAlreadyAdded(const QString &uuid)
return true;
}
}
if (device->deviceClassId() == colorTemperatureLightDeviceClassId) {
if (device->paramValue(colorTemperatureLightDeviceUuidParamTypeId).toString() == uuid) {
return true;
}
}
}
return false;
}