Commit graph

8 commits

Author SHA1 Message Date
Jan Bouwhuis
066692506c
Fix unhandled exception on humidifier intent when available_modes is None () 2024-01-24 22:14:15 +01:00
Michael Hansen
5aca996f22
HassTurnOn/Off intents to also handle cover entities ()
* Move entity/area resolution to async_match_states

* Special case for covers in HassTurnOn/Off

* Enable light color/brightness on areas

* Remove async_register from default agent

* Remove CONFIG_SCHEMA from conversation component

* Fix intent tests

* Fix light test

* Move entity/area resolution to async_match_states

* Special case for covers in HassTurnOn/Off

* Enable light color/brightness on areas

* Remove async_register from default agent

* Remove CONFIG_SCHEMA from conversation component

* Fix intent tests

* Fix light test

* Fix humidifier intent handlers

* Remove DATA_CONFIG for conversation

* Copy ServiceIntentHandler code to light

* Add proper errors to humidifier intent handlers
2023-01-19 17:15:01 -06:00
Michael Hansen
961c8cc167
Update intent response ()
* Add language to conversation and intent response

* Move language to intent response instead of speech

* Extend intent response for voice MVP

* Add tests for error conditions in conversation/process

* Move intent response type data into "data" field

* Move intent response error message back to speech

* Remove "success" from intent response

* Add id to target in intent response

* target defaults to None

* Update homeassistant/helpers/intent.py

* Fix test

* Return conversation_id and multiple targets

* Clean up git mess

* Fix linting errors

* Fix more async_handle signatures

* Separate conversation_id and IntentResponse

* Add unknown error code

* Add ConversationResult

* Don't set domain on single entity

* Language is required for intent response

* Add partial_action_done

* Default language in almond agent

Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-12-13 16:46:40 -06:00
Franck Nijhof
69e622b327
Clean up accessing intent helpers via hass () 2022-05-17 20:33:51 +02:00
Franck Nijhof
02dbd617b9
Add EntityFeature enum to Humidifier () 2022-04-01 20:10:52 +02:00
tkdrob
ab53b49d3f
Clean up constants ()
* Clean up constants

* clean up humidifier constants

* fix tests

* fix prometheus tests

Co-authored-by: Tobias Sauerwein <cgtobi@users.noreply.github.com>
2021-03-02 12:52:00 +01:00
J. Nick Koston
251d8919ea
Add domain filter support to async_all to match async_entity_ids ()
This avoids copying all the states before applying
the filter
2020-09-06 23:20:32 +02:00
Shulyaka
7c9ef39ef6
Add humidifier intents ()
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2020-07-17 11:20:34 -07:00