* Reduce requests made by webdav
* Update homeassistant/components/webdav/backup.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
---------
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Add backup helper
* Add hassio to stage 1
* Apply same changes to newly merged `webdav` and `azure_storage` to fix inflight conflict
* Address comments, add tests
---------
Co-authored-by: J. Nick Koston <nick@koston.org>
* Remove CONF_NAME in config entry
* Revert config entry version from 4 back to 3
* Add data_description for address in strings.json
* Use config entry title as coordinator name
* Use constant as mock config entry title
* Fix proximity distance calculation
The distance is now calculated to the edge of the zone instead of the centre
* Adjust proximity test expectations to corrected distance calculation
* Add proximity tests for zone changes
* Improve comment on proximity distance calculation
Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>
* Apply suggestions from code review
---------
Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>
* Gemini: Allow arbitrary attachments
This lets me use Gemini to extract information from PDFs, HTML, or other files.
* Gemini: Only add deprecation warning when deprecated parameter has a value
* Gemini: Use Files.upload() for both images and other files
This simplifies the code.
Within the Google client, this takes a different codepath (it uploads images as a file instead of re-saving them into inline bytes). I think that's a feature (it's probably more efficient?).
* Gemini: Deduplicate filenames
* Fix minimum version to run event_id_post_migration
The table rebuild to fix the foreign key constraint was added
in https://github.com/home-assistant/core/pull/120779 but the
schema version was not bumped so we need to make sure
any database that was created with schema 43 or older
still has the migration run as otherwise they will not
be able to purge the database with SQLite since each
delete in the events table will due a full table scan
of the states table to look for a foreign key that is
not there
fixes#138818
* Apply suggestions from code review
* Update homeassistant/components/recorder/migration.py
* Update homeassistant/components/recorder/migration.py
* Update homeassistant/components/recorder/const.py
* Apply suggestions from code review
* Apply suggestions from code review
* Apply suggestions from code review
* Apply suggestions from code review
* update tests, add more cover
* update tests, add more cover
* Update tests/components/recorder/test_migration_run_time_migrations_remember.py