don't add duplicate lights
parent
2e751f44d8
commit
040746f37a
|
|
@ -1368,6 +1368,11 @@ bool DevicePluginPhilipsHue::lightAlreadyAdded(const QString &uuid)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (device->deviceClassId() == colorTemperatureLightDeviceClassId) {
|
||||||
|
if (device->paramValue(colorTemperatureLightDeviceUuidParamTypeId).toString() == uuid) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue