Skip to content

Commit

Permalink
adjusted humidity sensor callback to actually adjust the current humi…
Browse files Browse the repository at this point in the history
…dity instead of temperature
  • Loading branch information
david-kalbermatten committed Mar 22, 2024
1 parent ca76036 commit c21ecbf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/dualmode_generic/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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."""
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit c21ecbf

Please sign in to comment.