Use renamed Units class (#9267)
Signed-off-by: Wouter Born <github@maindrain.net>
This commit is contained in:
@@ -19,7 +19,7 @@ import javax.measure.quantity.Speed;
|
||||
|
||||
import org.eclipse.jdt.annotation.NonNullByDefault;
|
||||
import org.eclipse.jdt.annotation.Nullable;
|
||||
import org.openhab.core.library.unit.SmartHomeUnits;
|
||||
import org.openhab.core.library.unit.Units;
|
||||
|
||||
/**
|
||||
* The {@link Synop} is the ancestor common class for analyzing
|
||||
@@ -311,7 +311,7 @@ public abstract class Synop {
|
||||
|
||||
public Unit<Speed> getWindUnit() {
|
||||
return (getWindIndicator() == WS_WILDTYPE_IN_MPS || getWindIndicator() == WS_ANEMOMETER_IN_MPS)
|
||||
? SmartHomeUnits.METRE_PER_SECOND
|
||||
: SmartHomeUnits.KNOT;
|
||||
? Units.METRE_PER_SECOND
|
||||
: Units.KNOT;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ import javax.measure.quantity.Temperature;
|
||||
|
||||
import org.eclipse.jdt.annotation.NonNullByDefault;
|
||||
import org.openhab.core.library.unit.SIUnits;
|
||||
import org.openhab.core.library.unit.SmartHomeUnits;
|
||||
import org.openhab.core.library.unit.Units;
|
||||
import org.openhab.core.thing.ThingTypeUID;
|
||||
|
||||
/**
|
||||
@@ -53,7 +53,7 @@ public class SynopAnalyzerBindingConstants {
|
||||
// Default units
|
||||
public static final Unit<Temperature> TEMPERATURE_UNIT = SIUnits.CELSIUS;
|
||||
public static final Unit<Pressure> PRESSURE_UNIT = HECTO(SIUnits.PASCAL);
|
||||
public static final Unit<Angle> WIND_DIRECTION_UNIT = SmartHomeUnits.DEGREE_ANGLE;
|
||||
public static final Unit<Angle> WIND_DIRECTION_UNIT = Units.DEGREE_ANGLE;
|
||||
|
||||
// Synop message origin station codes
|
||||
public static final String LAND_STATION_CODE = "AAXX";
|
||||
|
||||
Reference in New Issue
Block a user