From c21ecbf1e9a0d66ab9b9ced02165984351e33d7a Mon Sep 17 00:00:00 2001 From: David Kalbermatten Date: Fri, 22 Mar 2024 14:13:55 +0100 Subject: [PATCH] adjusted humidity sensor callback to actually adjust the current humidity instead of temperature --- custom_components/dualmode_generic/climate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/dualmode_generic/climate.py b/custom_components/dualmode_generic/climate.py index c487c07..0410a92 100644 --- a/custom_components/dualmode_generic/climate.py +++ b/custom_components/dualmode_generic/climate.py @@ -272,6 +272,7 @@ def __init__( self.heater_entity_id = heater_entity_id self.cooler_entity_id = cooler_entity_id self.sensor_entity_id = sensor_entity_id + self.humidity_sensor_entity_id = humidity_sensor_entity_id self.fan_entity_id = fan_entity_id self.fan_behavior = fan_behavior self.dryer_entity_id = dryer_entity_id @@ -352,7 +353,6 @@ def __init__( self._away_temp_heater = away_temp_heater self._away_temp_cooler = away_temp_cooler self._is_away = False - self.humidity_sensor_entity_id = humidity_sensor_entity_id async def async_added_to_hass(self): """Run when entity about to be added.""" @@ -424,7 +424,7 @@ def _async_startup(event=None): STATE_UNAVAILABLE, STATE_UNKNOWN, ): - self._async_update_temp(humidity_sensor_state) + self._async_update_humidity(humidity_sensor_state) if self.hass.state == CoreState.running: _async_startup()