diff --git a/custom_components/xiaomi_miot/climate.py b/custom_components/xiaomi_miot/climate.py index a099e169b..092af2d22 100644 --- a/custom_components/xiaomi_miot/climate.py +++ b/custom_components/xiaomi_miot/climate.py @@ -460,6 +460,8 @@ def temperature_unit(self): @property def current_temperature(self): + if self.custom_config('target2current_temp') is True and self.is_on: + return self.target_temperature if ATTR_CURRENT_TEMPERATURE in self._state_attrs: return float(self._state_attrs[ATTR_CURRENT_TEMPERATURE] or 0) if self._prop_temperature: diff --git a/custom_components/xiaomi_miot/config_flow.py b/custom_components/xiaomi_miot/config_flow.py index eda610ab2..167421bfa 100644 --- a/custom_components/xiaomi_miot/config_flow.py +++ b/custom_components/xiaomi_miot/config_flow.py @@ -737,7 +737,7 @@ def get_customize_options(hass, options={}, bool2selects=[], entity_id='', model }) if domain == 'climate' or re.search(r'aircondition|acpartner|airrtc', model, re.I): - bool2selects.extend(['ignore_fan_switch']) + bool2selects.extend(['ignore_fan_switch', 'target2current_temp']) options.update({ 'bind_sensor': cv.string, 'turn_on_hvac': cv.string,