diff --git a/bundles/org.openhab.binding.ecobee/src/main/java/org/openhab/binding/ecobee/action/EcobeeActions.java b/bundles/org.openhab.binding.ecobee/src/main/java/org/openhab/binding/ecobee/action/EcobeeActions.java index 0cf808fe640..9203b669385 100644 --- a/bundles/org.openhab.binding.ecobee/src/main/java/org/openhab/binding/ecobee/action/EcobeeActions.java +++ b/bundles/org.openhab.binding.ecobee/src/main/java/org/openhab/binding/ecobee/action/EcobeeActions.java @@ -341,9 +341,7 @@ public class EcobeeActions implements ThingActions, IEcobeeActions { Map params = new HashMap(); params.put("coolHoldTemp", coolHoldTemp); params.put("heatHoldTemp", heatHoldTemp); - params.put("holdType", HoldType.HOLD_HOURS); - params.put("holdHours", Integer.valueOf(holdHours.intValue())); - return setHold(params, null, null, null, null); + return setHold(params, HoldType.HOLD_HOURS.toString(), holdHours, null, null); } public static boolean setHold(@Nullable ThingActions actions, @Nullable QuantityType coolHoldTemp, @@ -396,9 +394,7 @@ public class EcobeeActions implements ThingActions, IEcobeeActions { } Map params = new HashMap(); params.put("holdClimateRef", holdClimateRef); - params.put("holdType", HoldType.HOLD_HOURS); - params.put("holdHours", Integer.valueOf(holdHours.intValue())); - return setHold(params, null, null, null, null); + return setHold(params, HoldType.HOLD_HOURS.toString(), holdHours, null, null); } public static boolean setHold(@Nullable ThingActions actions, @Nullable String holdClimateRef,