From 384bdff87c485123b6416de7bf8b634e8c2f19a3 Mon Sep 17 00:00:00 2001 From: Mark Hilbush Date: Tue, 22 Dec 2020 15:06:42 -0500 Subject: [PATCH] Fix pressure units (#9450) Signed-off-by: Mark Hilbush --- .../ecobee/internal/handler/EcobeeThermostatBridgeHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundles/org.openhab.binding.ecobee/src/main/java/org/openhab/binding/ecobee/internal/handler/EcobeeThermostatBridgeHandler.java b/bundles/org.openhab.binding.ecobee/src/main/java/org/openhab/binding/ecobee/internal/handler/EcobeeThermostatBridgeHandler.java index 6772b8287..3ff2697d1 100644 --- a/bundles/org.openhab.binding.ecobee/src/main/java/org/openhab/binding/ecobee/internal/handler/EcobeeThermostatBridgeHandler.java +++ b/bundles/org.openhab.binding.ecobee/src/main/java/org/openhab/binding/ecobee/internal/handler/EcobeeThermostatBridgeHandler.java @@ -691,7 +691,7 @@ public class EcobeeThermostatBridgeHandler extends BaseBridgeHandler { updateChannel(grp + CH_FORECAST_CONDITION, EcobeeUtils.undefOrString(forecast.condition)); updateChannel(grp + CH_FORECAST_TEMPERATURE, EcobeeUtils.undefOrTemperature(forecast.temperature)); updateChannel(grp + CH_FORECAST_PRESSURE, - EcobeeUtils.undefOrQuantity(forecast.pressure, ImperialUnits.INCH_OF_MERCURY)); + EcobeeUtils.undefOrQuantity(forecast.pressure, Units.MILLIBAR)); updateChannel(grp + CH_FORECAST_RELATIVE_HUMIDITY, EcobeeUtils.undefOrQuantity(forecast.relativeHumidity, Units.PERCENT)); updateChannel(grp + CH_FORECAST_DEWPOINT, EcobeeUtils.undefOrTemperature(forecast.dewpoint));