don't add duplicate lights
This commit is contained in:
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…
x
Reference in New Issue
Block a user