[lifx] fix QuantityType command (#17943)

Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
This commit is contained in:
Andrew Fiddian-Green 2024-12-21 11:13:41 +00:00 committed by Ciprian Pascu
parent 13f7225a0b
commit 24f303aa80

View File

@ -128,7 +128,7 @@ public final class LifxMessageUtil {
temperatureRange.getMaximum() - (temperature.floatValue() * (temperatureRange.getRange() / 100)));
}
public static int quantityTypeToKelvin(QuantityType temperature, TemperatureRange temperatureRange) {
public static int quantityTypeToKelvin(QuantityType<?> temperature, TemperatureRange temperatureRange) {
QuantityType<?> asKelvin = temperature.toInvertibleUnit(Units.KELVIN);
if (asKelvin == null) {
throw new IllegalStateException(