Skip to content

Commit

Permalink
Enbug fix, Mishandling of humidity sensor value
Browse files Browse the repository at this point in the history
  • Loading branch information
nao-pon committed Jun 12, 2024
1 parent cb706eb commit 644e603
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/tasmota_irhvac/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -1147,7 +1147,7 @@ def _async_update_humidity(self, state):
"""Update thermostat with latest state from humidity sensor."""
try:
if state.state != STATE_UNKNOWN and state.state != STATE_UNAVAILABLE:
self._attr_current_humidity = int(state.state)
self._attr_current_humidity = int(float(state.state))
except ValueError as ex:
_LOGGER.error("Unable to update from humidity sensor: %s", ex)

Expand Down

0 comments on commit 644e603

Please sign in to comment.