diff --git a/bundles/org.openhab.core.thing/schema/thing/thing-description-1.0.0.xsd b/bundles/org.openhab.core.thing/schema/thing/thing-description-1.0.0.xsd index 113d986dc..03e162e02 100644 --- a/bundles/org.openhab.core.thing/schema/thing/thing-description-1.0.0.xsd +++ b/bundles/org.openhab.core.thing/schema/thing/thing-description-1.0.0.xsd @@ -154,23 +154,21 @@ - - - + - + + - - + @@ -181,14 +179,13 @@ - + - @@ -198,11 +195,8 @@ - - - diff --git a/bundles/org.openhab.core/src/main/java/org/openhab/core/internal/i18n/I18nProviderImpl.java b/bundles/org.openhab.core/src/main/java/org/openhab/core/internal/i18n/I18nProviderImpl.java index 3950bee39..ee1983fdf 100644 --- a/bundles/org.openhab.core/src/main/java/org/openhab/core/internal/i18n/I18nProviderImpl.java +++ b/bundles/org.openhab.core/src/main/java/org/openhab/core/internal/i18n/I18nProviderImpl.java @@ -414,6 +414,7 @@ public class I18nProviderImpl addDefaultUnit(dimensionMap, ElectricResistance.class, Units.OHM); addDefaultUnit(dimensionMap, EmissionIntensity.class, Units.GRAM_PER_KILOWATT_HOUR); addDefaultUnit(dimensionMap, Energy.class, Units.KILOWATT_HOUR); + addDefaultUnit(dimensionMap, EnergyPrice.class, CurrencyUnits.BASE_ENERGY_PRICE); addDefaultUnit(dimensionMap, Force.class, Units.NEWTON); addDefaultUnit(dimensionMap, Frequency.class, Units.HERTZ); addDefaultUnit(dimensionMap, Illuminance.class, Units.LUX); @@ -426,12 +427,11 @@ public class I18nProviderImpl addDefaultUnit(dimensionMap, Mass.class, SIUnits.KILOGRAM, ImperialUnits.POUND); addDefaultUnit(dimensionMap, Power.class, Units.WATT); addDefaultUnit(dimensionMap, Pressure.class, HECTO(SIUnits.PASCAL), ImperialUnits.INCH_OF_MERCURY); - addDefaultUnit(dimensionMap, EnergyPrice.class, CurrencyUnits.BASE_ENERGY_PRICE); addDefaultUnit(dimensionMap, RadiationDoseAbsorbed.class, Units.GRAY); addDefaultUnit(dimensionMap, RadiationDoseEffective.class, Units.SIEVERT); + addDefaultUnit(dimensionMap, RadiationSpecificActivity.class, Units.BECQUEREL_PER_CUBIC_METRE); addDefaultUnit(dimensionMap, Radioactivity.class, Units.BECQUEREL); addDefaultUnit(dimensionMap, SolidAngle.class, Units.STERADIAN); - addDefaultUnit(dimensionMap, RadiationSpecificActivity.class, Units.BECQUEREL_PER_CUBIC_METRE); addDefaultUnit(dimensionMap, Speed.class, SIUnits.KILOMETRE_PER_HOUR, ImperialUnits.MILES_PER_HOUR); addDefaultUnit(dimensionMap, Temperature.class, SIUnits.CELSIUS, ImperialUnits.FAHRENHEIT); addDefaultUnit(dimensionMap, Time.class, Units.SECOND);