diff --git a/custom_components/localtuya/climate.py b/custom_components/localtuya/climate.py index 55bd303e7..c47886bd7 100644 --- a/custom_components/localtuya/climate.py +++ b/custom_components/localtuya/climate.py @@ -38,8 +38,6 @@ from .common import LocalTuyaEntity, async_setup_entry from .const import ( CONF_CURRENT_TEMPERATURE_DP, - CONF_TEMP_MAX, - CONF_TEMP_MIN, CONF_ECO_DP, CONF_ECO_VALUE, CONF_HEURISTIC_ACTION, @@ -166,8 +164,6 @@ def flow_schema(dps): vol.Optional(CONF_TEMPERATURE_STEP, default=PRECISION_WHOLE): vol.In( [PRECISION_WHOLE, PRECISION_HALVES, PRECISION_TENTHS] ), - vol.Optional(CONF_TEMP_MIN, default=DEFAULT_MIN_TEMP): vol.Coerce(float), - vol.Optional(CONF_TEMP_MAX, default=DEFAULT_MAX_TEMP): vol.Coerce(float), vol.Optional(CONF_MAX_TEMP_DP): vol.In(dps), vol.Optional(CONF_MIN_TEMP_DP): vol.In(dps), vol.Optional(CONF_PRECISION, default=PRECISION_WHOLE): vol.In( @@ -437,14 +433,14 @@ def min_temp(self): """Return the minimum temperature.""" if self.has_config(CONF_MIN_TEMP_DP): return self.dps_conf(CONF_MIN_TEMP_DP) - return self._config[CONF_TEMP_MIN] + return DEFAULT_MIN_TEMP @property def max_temp(self): """Return the maximum temperature.""" if self.has_config(CONF_MAX_TEMP_DP): return self.dps_conf(CONF_MAX_TEMP_DP) - return self._config[CONF_TEMP_MAX] + return DEFAULT_MAX_TEMP def status_updated(self): """Device status was updated.""" diff --git a/custom_components/localtuya/const.py b/custom_components/localtuya/const.py index 75f7bbd2a..ca53f488b 100644 --- a/custom_components/localtuya/const.py +++ b/custom_components/localtuya/const.py @@ -91,8 +91,6 @@ CONF_TEMPERATURE_STEP = "temperature_step" CONF_MAX_TEMP_DP = "max_temperature_dp" CONF_MIN_TEMP_DP = "min_temperature_dp" -CONF_TEMP_MAX = "max_temperature_const" -CONF_TEMP_MIN = "min_temperature_const" CONF_PRECISION = "precision" CONF_TARGET_PRECISION = "target_precision" CONF_HVAC_MODE_DP = "hvac_mode_dp"