mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
[lifx] fix QuantityType command (#17943)
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
This commit is contained in:
parent
c48752e6e1
commit
108067ac4b
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user