[ecobee] Fixed setHold when using holdHours (#8842)

Signed-off-by: Mark Hilbush <mark@hilbush.com>
This commit is contained in:
Mark Hilbush 2020-10-23 12:31:58 -04:00 committed by GitHub
parent cd7a22f2bd
commit eb982a04f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -341,9 +341,7 @@ public class EcobeeActions implements ThingActions, IEcobeeActions {
Map<String, Object> params = new HashMap<String, Object>();
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<Temperature> coolHoldTemp,
@ -396,9 +394,7 @@ public class EcobeeActions implements ThingActions, IEcobeeActions {
}
Map<String, Object> params = new HashMap<String, Object>();
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,