Use renamed Units class (#9267)

Signed-off-by: Wouter Born <github@maindrain.net>
This commit is contained in:
Wouter Born
2020-12-07 10:34:02 +01:00
committed by GitHub
parent d0480d0f2e
commit ac6f08908f
208 changed files with 1087 additions and 1169 deletions

View File

@@ -14,7 +14,7 @@ package org.openhab.binding.iammeter.internal;
import javax.measure.Unit;
import org.openhab.core.library.unit.SmartHomeUnits;
import org.openhab.core.library.unit.Units;
/**
* The {@link IammeterWEM3080Channel} Enum defines common constants, which are
@@ -24,11 +24,11 @@ import org.openhab.core.library.unit.SmartHomeUnits;
*/
public enum IammeterWEM3080Channel {
CHANNEL_VOLTAGE("voltage", SmartHomeUnits.VOLT),
CHANNEL_CURRENT("current", SmartHomeUnits.AMPERE),
CHANNEL_POWER("power", SmartHomeUnits.WATT),
CHANNEL_IMPORTENERGY("importenergy", SmartHomeUnits.KILOWATT_HOUR),
CHANNEL_EXPORTGRID("exportgrid", SmartHomeUnits.KILOWATT_HOUR);
CHANNEL_VOLTAGE("voltage", Units.VOLT),
CHANNEL_CURRENT("current", Units.AMPERE),
CHANNEL_POWER("power", Units.WATT),
CHANNEL_IMPORTENERGY("importenergy", Units.KILOWATT_HOUR),
CHANNEL_EXPORTGRID("exportgrid", Units.KILOWATT_HOUR);
private final String id;
private final Unit<?> unit;

View File

@@ -14,7 +14,7 @@ package org.openhab.binding.iammeter.internal;
import javax.measure.Unit;
import org.openhab.core.library.unit.SmartHomeUnits;
import org.openhab.core.library.unit.Units;
/**
* The {@link IammeterWEM3080TChannel} Enum defines common constants, which are
@@ -24,13 +24,13 @@ import org.openhab.core.library.unit.SmartHomeUnits;
*/
public enum IammeterWEM3080TChannel {
CHANNEL_VOLTAGE("voltage", SmartHomeUnits.VOLT),
CHANNEL_CURRENT("current", SmartHomeUnits.AMPERE),
CHANNEL_POWER("power", SmartHomeUnits.WATT),
CHANNEL_IMPORTENERGY("importenergy", SmartHomeUnits.KILOWATT_HOUR),
CHANNEL_EXPORTGRID("exportgrid", SmartHomeUnits.KILOWATT_HOUR),
CHANNEL_FREQUENCY("frequency", SmartHomeUnits.HERTZ),
CHANNEL_PF("pf", SmartHomeUnits.HERTZ);
CHANNEL_VOLTAGE("voltage", Units.VOLT),
CHANNEL_CURRENT("current", Units.AMPERE),
CHANNEL_POWER("power", Units.WATT),
CHANNEL_IMPORTENERGY("importenergy", Units.KILOWATT_HOUR),
CHANNEL_EXPORTGRID("exportgrid", Units.KILOWATT_HOUR),
CHANNEL_FREQUENCY("frequency", Units.HERTZ),
CHANNEL_PF("pf", Units.HERTZ);
private final String id;
private final Unit<?> unit;