mirror of
https://github.com/nymea/nymea-plugins.git
synced 2026-07-19 00:54:53 +02:00
don't add duplicate lights
This commit is contained in:
parent
a6829c0924
commit
665eda1353
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user