[weathercompany] Fix wind speed units (#8944)
Signed-off-by: Mark Hilbush <mark@hilbush.com>pull/8937/head
parent
da490ece4e
commit
5c4c89a0c9
|
@ -47,6 +47,7 @@ import org.openhab.core.library.types.QuantityType;
|
|||
import org.openhab.core.library.types.StringType;
|
||||
import org.openhab.core.library.unit.ImperialUnits;
|
||||
import org.openhab.core.library.unit.SIUnits;
|
||||
import org.openhab.core.library.unit.SmartHomeUnits;
|
||||
import org.openhab.core.thing.Bridge;
|
||||
import org.openhab.core.thing.Thing;
|
||||
import org.openhab.core.thing.ThingStatus;
|
||||
|
@ -187,7 +188,7 @@ public abstract class WeatherCompanyAbstractHandler extends BaseThingHandler {
|
|||
}
|
||||
|
||||
protected Unit<?> getSpeedUnit() {
|
||||
return isImperial() ? ImperialUnits.MILES_PER_HOUR : SIUnits.KILOMETRE_PER_HOUR;
|
||||
return isImperial() ? ImperialUnits.MILES_PER_HOUR : SmartHomeUnits.METRE_PER_SECOND;
|
||||
}
|
||||
|
||||
protected Unit<?> getLengthUnit() {
|
||||
|
|
Loading…
Reference in New Issue