Commit Graph

86923 Commits (7e071d1fc6b1fad0ebfbc28e58e039ceff93407a)

Author SHA1 Message Date
Tom 7e071d1fc6
Introduce parallel updates for Plugwise ()
* Plugwise indicate parallel updates

* Update homeassistant/components/plugwise/number.py

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>

---------

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2024-12-12 07:49:08 +01:00
Christopher Fenner b02ccd0813
Add missing body height icon in Withings integration ()
Update icons.json
2024-12-12 07:47:57 +01:00
J. Nick Koston eea781f34a
Bump led-ble to 1.1.1 ()
changelog: https://github.com/Bluetooth-Devices/led-ble/compare/v1.0.2...v1.1.1
2024-12-11 23:46:31 -05:00
Åke Strandberg 95f48963d4
Set strict typing for myuplink ()
Set strict typing
2024-12-11 23:11:11 +01:00
Åke Strandberg 4c5965ffc9
Add reconfiguration flow to myuplink ()
* Add reconfiguration flow

* Tick reconfiguration-flow rule
2024-12-11 22:47:14 +01:00
Erik Montnemery 8e991fc92f
Merge feature branch with backup changes to dev ()
* Reapply "Make WS command backup/generate send events" ()

This reverts commit 9b8316df3f.

* MVP implementation of Backup sync agents ()

* init sync agent

* add syncing

* root import

* rename list to info and add sync state

* Add base backup class

* Revert unneded change

* adjust tests

* move to kitchen_sink

* split

* move

* Adjustments

* Adjustment

* update

* Tests

* Test unknown agent

* adjust

* Adjust for different test environments

* Change /info WS to contain a dictinary

* reorder

* Add websocket command to trigger sync from the supervisor

* cleanup

* Make mypy happier

---------

Co-authored-by: Erik <erik@montnemery.com>

* Make BackupSyncMetadata model a dataclass ()

Make backup BackupSyncMetadata model a dataclass

* Rename backup sync agent to backup agent ()

* Rename sync agent module to agent

* Rename BackupSyncAgent to BackupAgent

* Fix test typo

* Rename async_get_backup_sync_agents to async_get_backup_agents

* Rename and clean up remaining sync things

* Update kitchen sink

* Apply suggestions from code review

* Update test_manager.py

---------

Co-authored-by: Erik Montnemery <erik@montnemery.com>

* Add additional options to WS command backup/generate ()

* Add additional options to WS command backup/generate

* Improve test

* Improve test

* Align parameter names in backup/agents/* WS commands ()

* Allow setting password for backups ()

* Allow setting password for backups

* use is_hassio from helpers

* move it

* Fix getting psw

* Fix restoring with psw

* Address review comments

* Improve docstring

* Adjust kitchen sink

* Adjust

---------

Co-authored-by: Erik <erik@montnemery.com>

* Export relevant names from backup integration ()

* Tweak backup agent interface ()

* Tweak backup agent interface

* Adjust kitchen_sink

* Test kitchen sink backup ()

* Test agents_list_backups

* Test agents_info

* Test agents_download

* Export Backup from manager

* Test agents_upload

* Update tests after rebase

* Use backup domain

* Remove WS command backup/upload ()

* Remove WS command backup/upload

* Disable failing kitchen_sink test

* Make local backup a backup agent ()

* Make local backup a backup agent

* Adjust

* Adjust

* Adjust

* Adjust tests

* Adjust

* Adjust

* Adjust docstring

* Adjust

* Protect members of CoreLocalBackupAgent

* Remove redundant check for file

* Make the backup.create service use the first local agent

* Add BackupAgent.async_get_backup

* Fix some TODOs

* Add support for downloading backup from a remote agent

* Fix restore

* Fix test

* Adjust kitchen_sink test

* Remove unused method BackupManager.async_get_backup_path

* Re-enable kitchen sink test

* Remove BaseBackupManager.async_upload_backup

* Support restore from remote agent

* Fix review comments

* Include backup agent error in response to WS command backup/info ()

* Adjust code related to WS command backup/info ()

* Include backup agent error in response to WS command backup/details ()

* Remove LOCAL_AGENT_ID constant from backup manager ()

* Add backup config storage ()

* Add base for backup config

* Allow updating backup config

* Test loading backup config

* Add backup config update method

* Add temporary check for BackupAgent.async_remove_backup ()

* Rename backup slug to backup_id ()

* Improve backup websocket API tests ()

* Improve backup websocket API tests

* Add missing snapshot

* Fix tests leaving files behind

* Improve backup manager backup creation tests ()

* Remove class backup.backup.LocalBackup ()

* Add agent delete backup ()

* Add backup agent delete backup

* Remove agents delete websocket command

* Update docstring

Co-authored-by: Erik Montnemery <erik@montnemery.com>

---------

Co-authored-by: Erik Montnemery <erik@montnemery.com>

* Disable core local backup agent in hassio ()

* Rename remove backup to delete backup ()

* Rename remove backup to delete backup

* Revert "backup/delete"

* Refactor BackupManager ()

* Refactor BackupManager

* Adjust

* Adjust backup creation

* Copy in executor

* Fix BackupManager.async_get_backup ()

* Fix typo in backup tests ()

* Adjust backup NewBackup class ()

* Remove class backup.BackupUploadMetadata ()

Remove class backup.BackupMetadata

* Report backup size in bytes instead of MB ()

Co-authored-by: Robert Resch <robert@resch.dev>

* Speed up CI for feature branch ()

* Speed up CI for feature branch

* adjust

* fix

* fix

* fix

* fix

* Rename remove to delete in backup websocket type ()

* Revert "Speed up CI for feature branch" ()

Revert "Speed up CI for feature branch ()"

This reverts commit 791280506d.

* Rename class BaseBackup to AgentBackup ()

* Rename class BaseBackup to AgentBackup

* Update tests

* Speed up CI for backup feature branch ()

* Add backup platform to the hassio integration ()

* Add backup platform to the hassio integration

* Add hassio to after_dependencies of backup

* Address review comments

* Remove redundant hassio parametrization of tests

* Add tests

* Address review comments

* Bump CI cache version

* Revert "Bump CI cache version"

This reverts commit 2ab4d2b179.

* Extend backup info class AgentBackup ()

* Extend backup info class AgentBackup

* Update kitchen sink

* Update kitchen sink test

* Update kitchen sink test

* Exclude cloud and hassio from core files ()

* Remove unnecessary **kwargs from backup API ()

* Fix backup tests ()

* Freeze backup dataclasses ()

* Protect CoreLocalBackupAgent.load_backups ()

* Use backup metadata v2 in core/container backups ()

* Extend backup creation API ()

* Extend backup creation API

* Add tests

* Fix merge

* Fix merge

* Return agent errors when deleting a backup ()

* Return agent errors when deleting a backup

* Remove redundant calls to dict.keys()

* Add enum type for backup folder ()

* Add method AgentBackup.from_dict ()

* Remove WS command backup/agents/list_backups ()

* Handle backup schedule ()

* Add backup schedule handling

* Fix unrelated incorrect type annotation in test

* Clarify delay save

* Make the backup time compatible with the recorder nightly job

* Update create backup parameters

* Use typed dict for create backup parameters

* Simplify schedule state

* Group create backup parameters

* Move parameter

* Fix typo

* Use Folder model

* Handle deserialization of folders better

* Fail on attempt to include addons or folders in core backup ()

* Fix AgentBackup test ()

* Add options to WS command backup/restore ()

* Add options to WS command backup/restore

* Add tests

* Fix test

* Teach core backup to restore only database or only settings ()

* Exclude tmp_backups/*.tar from backups ()

* Add WS command backup/subscribe_events ()

* Clean up temporary directory after restoring backup ()

* Improve hassio backup agent list ()

* Include `last_automatic_backup` in reply to backup/info ()

Include last_automatic_backup in reply to backup/info

* Handle backup delete after config ()

* Handle delete after copies

* Handle delete after days

* Add some test examples

* Test config_delete_after_logic

* Test config_delete_after_copies_logic

* Test more delete after days

* Add debug logs

* Always delete the oldest backup first

* Never remove the last backup

* Clean up words

Co-authored-by: Erik Montnemery <erik@montnemery.com>

* Fix after cleaning words

* Use utcnow

* Remove duplicate guard

* Simplify sorting

* Delete backups even if there are agent errors on get backups

---------

Co-authored-by: Erik Montnemery <erik@montnemery.com>

* Rename backup delete after to backup retention ()

* Rename backup delete after to backup retention

* Tweak

* Remove length limit on `agent_ids` when configuring backup ()

Remove length limit on agent_ids when configuring backup

* Rename backup retention_config to retention ()

* Modify backup agent API to be stream oriented ()

* Modify backup agent API to be stream oriented

* Fix tests

* Adjust after code review

* Remove no longer needed pylint override

* Improve test coverage

* Change BackupAgent API to work with AsyncIterator objects

* Don't close files in the event loop

* Don't close files in the event loop

* Fix backup manager create backup log ()

* Fix debug log level ()

* Add cloud backup agent ()

* Init cloud backup sync

* Add more metadata

* Fix typo

* Adjust to base changes

* Don't raise on list if more than one backup is available

* Adjust to base branch

* Fetch always and verify on download

* Update homeassistant/components/cloud/backup.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Adjust to base branch changes

* Not required anymore

* Workaround

* Fix blocking event loop

* Fix

* Add some tests

* some tests

* Add cloud backup delete functionality

* Enable check

* Fix ruff

* Use fixture

* Use iter_chunks instead

* Remove read

* Remove explicit export of read_backup

* Align with BackupAgent API changes

* Improve test coverage

* Improve error handling

* Adjust docstrings

* Catch aiohttp.ClientError bubbling up from hass_nabucasa

* Improve iteration

---------

Co-authored-by: Erik <erik@montnemery.com>
Co-authored-by: Robert Resch <robert@resch.dev>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Krisjanis Lejejs <krisjanis.lejejs@gmail.com>

* Extract file receiver from `BackupManager.async_receive_backup` to util ()

* Extract file receiver from BackupManager.async_receive_backup to util

* Apply suggestions from code review

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

---------

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Make sure backup directory exists ()

* Make sure backup directory exists

* Hand off directory creation to executor

* Use mkdir's exist_ok feeature

* Organize BackupManager instance attributes ()

* Don't store received backups in a TempDir ()

* Don't store received backups in a TempDir

* Fix tests

* Make sure backup directory exists

* Address review comments

* Fix tests

* Rewrite backup manager state handling ()

* Rewrite backup manager state handling

* Address review comments

* Modify backup reader/writer API to be stream oriented ()

* Internalize backup tasks ()

* Internalize backup tasks

* Update test after rebase

* Handle backup error during automatic backup ()

* Improve backup manager state logging ()

* Fix backup manager state when restore completes ()

* Remove WS command backup/agents/download ()

* Add WS command backup/generate_with_stored_settings ()

* Add WS command backup/generate_with_stored_settings

* Register the new command, add tests

* Refactor local agent backup tests ()

* Refactor test_load_backups

* Refactor test loading agents

* Refactor test_delete_backup

* Refactor test_upload

* Clean up duplicate tests

* Refactor backup manager receive tests ()

* Refactor backup manager receive tests

* Clean up

* Refactor pre and post platform tests ()

* Refactor backup pre platform test

* Refactor backup post platform test

* Bump aiohasupervisor to version 0.2.2b0 ()

* Bump aiohasupervisor to version 0.2.2b0

* Adjust tests

* Publish event when manager is idle after creating backup ()

* Handle busy backup manager when uploading backup ()

* Adjust hassio backup agent to supervisor changes ()

* Adjust hassio backup agent to supervisor changes

* Fix typo

* Refactor test for create backup with wrong parameters ()

* Refactor test not loading bad backup platforms ()

* Improve receive backup coverage ()

* Refactor initiate backup test ()

* Rename Backup to ManagerBackup ()

* Refactor backup config ()

* Refactor backup config

* Remove unnecessary condition

* Adjust tests

* Improve initiate backup test ()

* Store the time of automatic backup attempts ()

* Store the time of automatic backup attempts

* Address review comments

* Update test

* Update cloud test

* Save agent failures when creating backups ()

* Save agent failures when creating backups

* Update tests

* Store KnownBackups

* Add test

* Only clear known_backups on no error, add tests

* Address review comments

* Store known backups as a list

* Update tests

* Track all backups created with backup strategy settings ()

* Track all backups created with saved settings

* Rename

* Add explicit call to save the store

* Don't register service backup.create in HassOS installations ()

* Revert changes to action service backup.create ()

* Fix logic for cleaning up temporary backup file ()

* Fix logic for cleaning up temporary backup file

* Reduce scope of patch

* Fix with_strategy_settings info not sent over websocket ()

* Fix with_strategy_settings info not sent over websocket

* Fix kitchen sink tests

* Fix cloud and hassio tests

* Revert backup ci changes ()

Revert changes speeding up CI

* Fix revert of CI changes ()

---------

Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Robert Resch <robert@resch.dev>
Co-authored-by: Paul Bottein <paul.bottein@gmail.com>
Co-authored-by: Krisjanis Lejejs <krisjanis.lejejs@gmail.com>
2024-12-11 21:49:34 +01:00
G Johansson a1e4b3b0af
Update quality scale for nordpool ()
* Update quality scale for nordpool

* more
2024-12-11 21:23:26 +01:00
Noah Husby d43d84a67f
Add parallel updates & use typed config entry for Russound RIO () 2024-12-11 21:07:29 +01:00
Josef Zweck 525614b7cd
Bump pylamarzocco to 1.4.0 ()
* Bump pylamarzocco to 1.4.0

* update device snapshot
2024-12-11 21:52:20 +02:00
Franck Nijhof 73e68971e8
Remove port from Elgato configuration flow () 2024-12-11 20:48:55 +01:00
Marc Mueller 833557fad5
Trigger full ci run on global mypy config change () 2024-12-11 19:16:49 +01:00
epenet 0e8fe1eb41
Improve coverage in light reproduce state () 2024-12-11 19:15:36 +01:00
Allen Porter fa05cc5e70
Add quality scale for nest integration ()
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2024-12-11 19:04:16 +01:00
Noah Husby 096d653059
Record current IQS state for Russound RIO () 2024-12-11 19:03:43 +01:00
Jan Bouwhuis 3a7fc15656
Add Dutch locale on supported Alexa interfaces () 2024-12-11 19:01:20 +01:00
Matthias Alphart 233d927c01
Update xknx to 3.4.0 () 2024-12-11 18:56:21 +01:00
Michael Hansen 94260147d7
Fix pipeline conversation language () 2024-12-11 18:52:02 +01:00
Robert Resch 502a221feb
Set go2rtc quality scale to internal () 2024-12-11 17:20:49 +01:00
epenet 39f8de0159
Fix mqtt light attributes () 2024-12-11 17:18:54 +01:00
Maikel Punie 00ab5db661
Split the velbus services code in its own file () 2024-12-11 16:41:48 +01:00
epenet 0d71828def
Migrate mqtt lights to use Kelvin ()
* Migrate mqtt lights to use Kelvin

* Adjust restore_cache tests

* Adjust tests
2024-12-11 16:11:14 +01:00
jb101010-2 ee4db13c2a
Add data description to suez_water config flow ()
* Suez_water: config flow data_descriptions

* Rename counter by meter

* Use placeholders
2024-12-11 15:52:43 +01:00
Simone Chemelli 555d7f1ea4
Guard Vodafone Station updates against bad data ()
guard Vodafone Station updates against bad data
2024-12-11 15:40:18 +01:00
epenet 1753382307
Adjust lifx to use local _ATTR_COLOR_TEMP constant () 2024-12-11 14:11:29 +00:00
Åke Strandberg 05b23d081b
Set quality_scale for myUplink to Silver () 2024-12-11 13:09:33 +00:00
Maikel Punie f974479970
Velbus add quality_scale.yaml ()
Co-authored-by: Allen Porter <allen.porter@gmail.com>
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-12-11 13:53:14 +01:00
Matthias Alphart ecfa888918
Create quality_scale.yaml from integration scaffold script ()
Co-authored-by: Josef Zweck <24647999+zweckj@users.noreply.github.com>
2024-12-11 13:52:53 +01:00
Åke Strandberg 7103b7fd80
Use snapshot tests for remaining myuplink platforms ()
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-12-11 13:01:02 +01:00
Marc Mueller dc8b7cfede
Allow bytearray for mqtt payload type () 2024-12-11 11:51:16 +01:00
Simon Lamon b26583b0bf
Bump python-linkplay to v0.1.1 () 2024-12-11 11:12:05 +01:00
shapournemati-iotty beda273721
upgrade iottycloud lib to 0.3.0 () 2024-12-11 10:52:47 +01:00
Marc Mueller 0e8961276f
Enable pydantic.v1 mypy plugin () 2024-12-11 10:50:42 +01:00
epenet 9c9e82a93e
Migrate zha lights to use Kelvin () 2024-12-11 09:58:08 +01:00
epenet 7ef3e92e2d
Migrate tasmota lights to use Kelvin () 2024-12-11 09:57:29 +01:00
G Johansson 2bb05296b8
Add remaining test coverage to yale_smart_alarm () 2024-12-11 09:46:53 +01:00
epenet b780f31e63
Migrate flux to use Kelvin over Mireds () 2024-12-11 08:55:23 +01:00
Robert Resch af838077cc
Fix docker hassfest () 2024-12-11 08:55:00 +01:00
shapournemati-iotty 5e17721568
Remove old codeowner no longer working on the integration () 2024-12-11 08:53:19 +01:00
epenet 4ff41ed2f8
Refactor light significant change to use kelvin attribute () 2024-12-11 08:42:48 +01:00
dependabot[bot] f0f0b4b8fa
Bump github/codeql-action from 3.27.6 to 3.27.7 ()
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-11 08:24:25 +01:00
Ludovic BOUÉ 9f40074d66
Fix typo in water heater integration ()
Fix typo in water heater componant
2024-12-11 07:36:09 +01:00
Chris Talkington 73feeacc39
Use runtime_data for roku ()
* use runtime_data for roku

* unload cleanup

* tweaks

* tweaks

* fix tests

* fix tests

* Update config_flow.py

* Update config_flow.py
2024-12-11 06:55:58 +01:00
Allen Porter 355e80aa56
Test the google tasks api connection in setup ()
Improve google tasks setup
2024-12-10 19:01:50 -08:00
Marc Mueller 77debcbe8b
Update numpy to 2.2.0 () 2024-12-10 22:28:30 +01:00
Jonas Fors Lellky b46392041f
Add model_id to flexit (bacnet) entity ()
* Add model_id to flexit (bacnet) entity

* Add model to mock
2024-12-10 21:44:00 +01:00
epenet fb3ffaf18d
Migrate demo lights to use Kelvin ()
* Migrate demo lights to use Kelvin

* Adjust google_assistant tests
2024-12-10 20:59:12 +01:00
Manu 1b300a4389
Set config-flow rule in IQS to todo in Bring integration ()
Set config-flow rule in IQS to todo
2024-12-10 20:52:39 +01:00
G Johansson 5dc2757324
Add quality scale to Nord Pool ()
* Add quality scale to Nord Pool

* Update

* a

* fix
2024-12-10 19:35:21 +01:00
G Johansson 76b73fa9b1
Use floats instead of datetime in statistics ()
* Use floats instead of datetime in statistics

* check if debug log
2024-12-10 19:03:43 +01:00
Stefano Angeleri 7fb5b17ac5
Bump pydaikin to 2.13.8 () 2024-12-10 19:29:28 +02:00