* Google Generative AI Conversation: Add variables to the system prompt
* User name and llm_context
* test for template variables
* test for template variables
---------
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
* OpenAI Conversation: Add variables to the system prompt
* User name and llm_context
* test for user name
* test for user id
---------
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
* Prevent time.sleep calls from blocking the event loop
We have been warning on these since Jan 2022. 2+ years seems more than enough
time to give to fix these. see https://github.com/home-assistant/core/pull/63766
* Prevent time.sleep calls from blocking the event loop
We have been warning on these since Jan 2022. 2+ years seems more than enough
time to give to fix these. see https://github.com/home-assistant/core/pull/63766
* Fix openweathermap config entry migration
The options keys were accidentally migrated to data so
they could no longer be changed in the options flow
* more fixes
* adjust
* reduce
* fix
* adjust
* type hints
remove unused var interval
* corrections as suggested by epenet
* reintroducing property extra_state_attributes
so that the extra parameters update correctly
* typing for client and consequences
* Update homeassistant/components/openai_conversation/conversation.py
---------
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
* Ignore deprecated open and close cover intents for LLMs
* Fix LLMs asking which area when there is only one device
* remove unrelated changed
* remove unrelated changes
* Schedule max dt for Riemann Integral sensor
* Simplify validation. Dont integrate on change if either old or new state is not numeric.
* Add validation to integration methods. Rollback requirement for both states to be always numeric.
* Use 0 max_dt for disabling time based updates.
* Use docstring instead of pass keyword in abstract methods.
* Use time_period config validation for max_dt
* Use new_state for scheduling max_dt. Only schedule if new state is numeric.
* Use default 0 (None) for max_dt.
* Rename max_dt to max_age.
* Rollback accidental renaming of different file
* Remove unnecessary and nonsensical max value.
* Improve new config description
* Use DurationSelector in config flow
* Rename new config to max_sub_interval
* Simplify by checking once for the integration strategy
* Use positive time period validation of sub interval in platform schema
Co-authored-by: Erik Montnemery <erik@montnemery.com>
* Remove return keyword
Co-authored-by: Erik Montnemery <erik@montnemery.com>
* Simplify scheduling of interval exceeded callback
Co-authored-by: Erik Montnemery <erik@montnemery.com>
* Improve documentation
* Be more clear about when time based integration is disabled.
* Update homeassistant/components/integration/config_flow.py
---------
Co-authored-by: Erik Montnemery <erik@montnemery.com>