File tree 4 files changed +5
-16
lines changed
custom_components/nodered
4 files changed +5
-16
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ _Companion Component to [node-red-contrib-home-assistant-websocket](https://gith
23
23
## Minimum Requirements
24
24
25
25
- [ node-red-contrib-home-assistant-websocket] ( https://github.com/zachowj/node-red-contrib-home-assistant-websocket ) v0.57+
26
- - [ Home Assistant] ( https://github.com/home-assistant/core ) 2023.7.0 +
26
+ - [ Home Assistant] ( https://github.com/home-assistant/core ) 2024.5 +
27
27
28
28
## Installation
29
29
Original file line number Diff line number Diff line change 2
2
"domain" : " nodered" ,
3
3
"name" : " Node-RED Companion" ,
4
4
"after_dependencies" : [
5
+ " conversation" ,
5
6
" mqtt"
6
7
],
7
8
"codeowners" : [
Original file line number Diff line number Diff line change 6
6
7
7
from hassil .recognize import RecognizeResult
8
8
from homeassistant .components import device_automation
9
- from homeassistant .components .conversation import (
10
- HOME_ASSISTANT_AGENT ,
11
- )
12
-
13
- try :
14
- from homeassistant .components .conversation import get_agent_manager
15
- except ImportError :
16
- # _get_agent_manager was renamed to get_agent_manager in 2024.4.0
17
- from homeassistant .components .conversation import (
18
- _get_agent_manager as get_agent_manager ,
19
- )
9
+ from homeassistant .components .conversation .default_agent import async_get_default_agent
20
10
21
11
from homeassistant .components .conversation .default_agent import DefaultAgent
22
12
from homeassistant .components .device_automation import DeviceAutomationType
@@ -355,9 +345,7 @@ def remove_trigger() -> None:
355
345
_LOGGER .info (f"Sentence trigger removed: { sentences } " )
356
346
357
347
try :
358
- default_agent = await get_agent_manager (hass ).async_get_agent (
359
- HOME_ASSISTANT_AGENT
360
- )
348
+ default_agent = async_get_default_agent (hass )
361
349
assert isinstance (default_agent , DefaultAgent )
362
350
363
351
_remove_trigger = default_agent .register_trigger (sentences , handle_trigger )
Original file line number Diff line number Diff line change 1
1
{
2
2
"filename" : " nodered.zip" ,
3
- "homeassistant" : " 2023.7 .0" ,
3
+ "homeassistant" : " 2024.5 .0" ,
4
4
"name" : " Node-RED Companion" ,
5
5
"zip_release" : true
6
6
}
You can’t perform that action at this time.
0 commit comments