From e9369b6956a3814705bae1b5d5dda3ecc87a68d6 Mon Sep 17 00:00:00 2001 From: Cody Cutrer Date: Wed, 24 Jul 2024 01:10:46 -0600 Subject: [PATCH] [homekit] fix thermostats with auto mode and only target temperature (#17136) allow configuring such an accessory, and it's up to the user to be okay with how the Home app deals with it Signed-off-by: Cody Cutrer --- .../internal/accessories/HomekitThermostatImpl.java | 7 ------- 1 file changed, 7 deletions(-) diff --git a/bundles/org.openhab.io.homekit/src/main/java/org/openhab/io/homekit/internal/accessories/HomekitThermostatImpl.java b/bundles/org.openhab.io.homekit/src/main/java/org/openhab/io/homekit/internal/accessories/HomekitThermostatImpl.java index b1bbb1e097..fbbe9401c4 100644 --- a/bundles/org.openhab.io.homekit/src/main/java/org/openhab/io/homekit/internal/accessories/HomekitThermostatImpl.java +++ b/bundles/org.openhab.io.homekit/src/main/java/org/openhab/io/homekit/internal/accessories/HomekitThermostatImpl.java @@ -83,13 +83,6 @@ class HomekitThermostatImpl extends AbstractHomekitAccessoryImpl { var targetHeatingCoolingStateCharacteristic = getCharacteristic(TargetHeatingCoolingStateCharacteristic.class) .get(); - if (Arrays.stream(targetHeatingCoolingStateCharacteristic.getValidValues()) - .anyMatch(v -> v.equals(TargetHeatingCoolingStateEnum.AUTO)) - && (!coolingThresholdTemperatureCharacteristic.isPresent() - || !heatingThresholdTemperatureCharacteristic.isPresent())) { - throw new HomekitException( - "Both HeatingThresholdTemperature and CoolingThresholdTemperature must be provided if AUTO mode is allowed."); - } // TargetTemperature not provided; simulate by forwarding to HeatingThresholdTemperature and // CoolingThresholdTemperature -- 2.47.3