mirror of https://github.com/nymea/nymea.git
fix hue with white light
parent
1ac51e6ff0
commit
8d5c75111a
|
|
@ -149,8 +149,7 @@ void HueLight::updateStates(const QVariantMap &statesMap)
|
|||
setPower(statesMap.value("on").toBool());
|
||||
setSat(statesMap.value("sat").toInt());
|
||||
setHue(statesMap.value("hue").toInt());
|
||||
if (!statesMap.value("xy").toList().isEmpty())
|
||||
setXy(QPointF(statesMap.value("xy").toList().first().toFloat(), statesMap.value("xy").toList().last().toFloat()));
|
||||
//setXy(QPointF(statesMap.value("xy").toList().first().toFloat(),statesMap.value("xy").toList().last().toFloat()));
|
||||
|
||||
emit stateChanged();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue