zachowj / hass-node-red

Companion Component for node-red-contrib-home-assistant-websocket to help integrate Node-RED with Home Assistant Core
MIT License
443 stars 180 forks source link

Upgrade to 1.6.0: cannot import name 'HOME_ASSISTANT_AGENT' from 'homeassistant.components.conversation' #194

Closed FileGo closed 12 months ago

FileGo commented 12 months ago

Version of the custom_component

NodeRED Companion: 1.6.0 HA: 2023.4.6 NodeRED: 14.3.0

Configuration

Describe the bug

Integration fails to load after upgrading from 1.4.0 to 1.6.0.

Debug log


Logger: homeassistant.setup
Source: setup.py:213
First occurred: 16:13:32 (1 occurrences)
Last logged: 16:13:32
Setup failed for custom integration nodered: Unable to import component: cannot import name 'HOME_ASSISTANT_AGENT' from 'homeassistant.components.conversation' (/usr/src/homeassistant/homeassistant/components/conversation/__init__.py)
TuTunabh4 commented 12 months ago

yes,i've met the same question.How to fix that?

TuTunabh4 commented 12 months ago

When I delete the intergation and install again,it shows the error" {"message":"Invalid handler specified"}"

zachowj commented 12 months ago

You're going to need to revert to version 1.4.0 if not running Home Assistant 2023.7+

TuTunabh4 commented 12 months ago

Thank you so much. It has been fixed. And it looks like version 1.5.0 also can't work with Home Assistant 2023.1.

zachowj commented 12 months ago

Version 1.6.1 will now work Home Assistant versions back to 2021.12.0. Starting with v2.0.0, it will require Home Assistant 2023.7+.