RobHofmann / HomeAssistant-GreeClimateComponent

Custom Gree climate component written in Python3 for Home Assistant. Controls AC's supporting the Gree protocol.
GNU General Public License v3.0
309 stars 104 forks source link

Devices unavailable #161

Closed trebestie closed 4 months ago

trebestie commented 4 months ago

Describe the bug After last upgrade devices are unavailable

Expected behavior Devices available

Platform: Home assistant core 2024.2.2

Logs I'm getting following error. Do I need python 3.12?

Platform error 'climate' from integration 'gree' - cannot import name 'EventStateChangedData' from 'homeassistant.core' (/srv/homeassistant/lib/python3.11/site-packages/homeassistant/core.py) Platform error 'climate' from integration 'gree' - cannot import name 'EventStateChangedData' from 'homeassistant.core' (/srv/homeassistant/lib/python3.11/site-packages/homeassistant/core.py) Platform error 'climate' from integration 'gree' - cannot import name 'EventStateChangedData' from 'homeassistant.core' (/srv/homeassistant/lib/python3.11/site-packages/homeassistant/core.py)

My regards

kagiedrius commented 4 months ago

I have the same issue after the latest update

EDIT: i found that version 2.7.0 is related with some deprecated values and that it was remove in 2024.5 version. As my HA core version was 2024.4.3 i've just updated to 2024.5.4 and it all works again.

So just update HA core and it will be working again.

RobHofmann commented 4 months ago

Update your Home Assistant or downgrade the gree component. This component version is compatible with newer hass versions.