[lifx] fix QuantityType command (#17943)

Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
This commit is contained in:
Andrew Fiddian-Green 2024-12-21 11:13:41 +00:00 committed by GitHub
parent c48752e6e1
commit 108067ac4b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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(