From 888314d762500e528ff539607402ba14ee425cc6 Mon Sep 17 00:00:00 2001 From: "Tristan B." Date: Thu, 14 Mar 2024 09:59:28 -0600 Subject: [PATCH] fix: Hide default climate settings with `disableClimateSettingSchedules` --- .../DeviceDetails/ThermostatDeviceDetails.tsx | 34 ++++++++++--------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/src/lib/seam/components/DeviceDetails/ThermostatDeviceDetails.tsx b/src/lib/seam/components/DeviceDetails/ThermostatDeviceDetails.tsx index f10697767..257c4824c 100644 --- a/src/lib/seam/components/DeviceDetails/ThermostatDeviceDetails.tsx +++ b/src/lib/seam/components/DeviceDetails/ThermostatDeviceDetails.tsx @@ -123,23 +123,25 @@ export function ThermostatDeviceDetails({ - - - {device.properties.default_climate_setting != null ? ( - - ) : ( -

{t.none}

- )} -
+ {!disableClimateSettingSchedules && ( + + + {device.properties.default_climate_setting != null ? ( + + ) : ( +

{t.none}

+ )} +
- -
+ +
+ )}