diff --git a/custom_components/xiaomi_miio_airconditioningcompanion/climate.py b/custom_components/xiaomi_miio_airconditioningcompanion/climate.py index 52a55ed..76f9f5c 100644 --- a/custom_components/xiaomi_miio_airconditioningcompanion/climate.py +++ b/custom_components/xiaomi_miio_airconditioningcompanion/climate.py @@ -275,7 +275,7 @@ def __init__( @callback def _async_update_temp(self, state): """Update thermostat with latest state from sensor.""" - if state.state is None or state.state == "unknown": + if state.state is None or state.state in ["unknown", "unavailable"]: return unit = state.attributes.get(ATTR_UNIT_OF_MEASUREMENT) diff --git a/custom_components/xiaomi_miio_airconditioningcompanion/manifest.json b/custom_components/xiaomi_miio_airconditioningcompanion/manifest.json index 5103b2c..77119de 100644 --- a/custom_components/xiaomi_miio_airconditioningcompanion/manifest.json +++ b/custom_components/xiaomi_miio_airconditioningcompanion/manifest.json @@ -2,7 +2,7 @@ "domain": "xiaomi_miio_airconditioningcompanion", "name": "Xiaomi Mi and Aqara Air Conditioning Companion", "config_flow": false, - "version": "2022.4.6.0", + "version": "2022.4.6.1", "iot_class": "local_polling", "documentation": "https://github.com/syssi/xiaomi_airconditioningcompanion", "issue_tracker": "https://github.com/syssi/xiaomi_airconditioningcompanion/issues",