From 644e60325b406b80015d9d75c53f271eb79fe492 Mon Sep 17 00:00:00 2001 From: nao-pon Date: Wed, 12 Jun 2024 21:18:08 +0900 Subject: [PATCH] Enbug fix, Mishandling of humidity sensor value --- custom_components/tasmota_irhvac/climate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/tasmota_irhvac/climate.py b/custom_components/tasmota_irhvac/climate.py index a7e3a8d..372aea6 100644 --- a/custom_components/tasmota_irhvac/climate.py +++ b/custom_components/tasmota_irhvac/climate.py @@ -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)