hristo-atanasov / Tasmota-IRHVAC

Home Assistant platform for controlling IR Air Conditioners via Tasmota IRHVAC command and compatible hardware
186 stars 64 forks source link

Breaking change in 2024.6.x? "cannot import name 'MqttAvailability'" #143

Closed maddiebeaton closed 3 weeks ago

maddiebeaton commented 3 weeks ago

I just upgraded from 2024.5.5 to 2024.6.2 and the climate config is no longer loading. Checking the configuration gets me this error:

Platform error 'climate' from integration 'tasmota_irhvac' - cannot import name 'MqttAvailability' from 'homeassistant.components.mqtt.mixins' (/usr/src/homeassistant/homeassistant/components/mqtt/mixins.py)
Platform error 'climate' from integration 'tasmota_irhvac' - cannot import name 'MqttAvailability' from 'homeassistant.components.mqtt.mixins' (/usr/src/homeassistant/homeassistant/components/mqtt/mixins.py)
Platform error 'climate' from integration 'tasmota_irhvac' - cannot import name 'MqttAvailability' from 'homeassistant.components.mqtt.mixins' (/usr/src/homeassistant/homeassistant/components/mqtt/mixins.py)

The release notes mention a backwards-incompatible change with MQTT involving climate items, but I'm not sure if it is related.

I can confirm that downgrading back to 2024.5.5 solves the issue.

Thanks!

sjaks commented 3 weeks ago

I faced the same issue and inspired by #141, I downloaded the latest release for version 2024.6.1:

https://github.com/hristo-atanasov/Tasmota-IRHVAC/releases/tag/v2024.6.1

Then reboot and it worked as before!

maddiebeaton commented 3 weeks ago

Ah thanks! It seems I never had this installed through HACS so I didn't get an update for it. Will fix on my end, sorry for the duplicate issue : )