* 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>
* Initial commit
* Fix updating of unique id
* Add testing to check the unique id is being updated correctly
* Reload the config entry and confirm the unique id has not been changed
* Move updating unique_id to __init__.py as suggested
* Change the config_entry variable's name back from config to config_entry
* Move the loop into the update_unique_ids method
* Move test from test_config_flow to test_init
* Try an early optimization to check if we need to update the unique ids
* Mention the correct version
* Implement suggestions
* Ensure all entities are migrated correctly
* Just to be sure keep the previous assertion as well
* Add configuration option positive to DurationSelector
* Rename to allow_negative in conjunction with a deprecation notice
Co-authored-by: Erik Montnemery <erik@montnemery.com>
---------
Co-authored-by: Erik Montnemery <erik@montnemery.com>