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> Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
This commit is contained in:
parent
13f7225a0b
commit
24f303aa80
@ -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