From 589d72b9e236446412082a50427c88543297d316 Mon Sep 17 00:00:00 2001 From: Zkdc Date: Mon, 19 Aug 2024 02:12:53 +0800 Subject: [PATCH] fix: water_heater: do not set target_temperature_high and target_temperature_low these values are for target temperature range. It is obviously incorrect to set these values to min_temp and max_temp. Since we can not get/set the device's target temperature range, we should not set these values. --- custom_components/midea_ac_lan/water_heater.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/custom_components/midea_ac_lan/water_heater.py b/custom_components/midea_ac_lan/water_heater.py index bcb4d80..8365d55 100644 --- a/custom_components/midea_ac_lan/water_heater.py +++ b/custom_components/midea_ac_lan/water_heater.py @@ -118,16 +118,6 @@ def max_temp(self) -> float: """Midea Water Heater max temperature.""" raise NotImplementedError - @property - def target_temperature_low(self) -> float: - """Midea Water Heater target temperature low.""" - return self.min_temp - - @property - def target_temperature_high(self) -> float: - """Midea Water Heater target temperature high.""" - return self.max_temp - @property def precision(self) -> float: """Midea Water Heater precision."""