Commit Graph

25234 Commits (7058ae928882050f85a08133840f811d33913e92)

Author SHA1 Message Date
Álvaro Fernández Rojas 5c2d769b54
Enable AEMET data cache (#131226) 2024-12-21 11:30:46 +01:00
Josef Zweck 66e863a2e3
Allow lamarzocco to reconnect websocket (#133635) 2024-12-21 11:29:24 +01:00
J. Nick Koston 4e316429d3
Handle WebsocketConnectionError during mqtt auto reconnect (#133697)
followup to #133610 to handle the exception in the auto reconnect
path as well

fixes #132985
2024-12-21 11:18:47 +01:00
J. Nick Koston 43fab48d4e
Improve purge performance for PostgreSQL with large databases (#133699) 2024-12-21 10:53:15 +01:00
Andrew Sayre e43f4466e0
Improve HEOS group handling (#132213)
* Move register method to GroupManager

* Remove GroupManager mapping when entity removed

* Add test for when unloaded

* Error when group member not found

* Use entity registery to remove entity

* Update tests per feedback
2024-12-21 09:40:33 +01:00
Erik Montnemery 82f54eb9d2
Adjust the default backup name (#133668) 2024-12-21 09:38:59 +01:00
Abílio Costa 954b6133cb
Use common mock fixture in Idasen Desk config flow tests (#133679) 2024-12-21 09:35:47 +01:00
Kevin Worrel e38a85da64
Add entity translation strings for ScreenLogic (#130708)
* Add translation strings for entities

* Translation key updates

* Mach original name

* Remove state translations

* Sentence case entity names

* Fix tests

* Add missing translation_key for Air temperature

* Revert inadvertant entity_id change on last_dose_time sensors

* Update homeassistant/components/screenlogic/strings.json

Lowercase 'entry'

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>

* Define translations for each circuit delay sensor

---------

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-12-21 09:25:21 +01:00
greyeee 861d9b3341
Add initial support for SwitchBot relay switch (#130863)
* Support relay switch

* 更新下版本

* add test case

* change to async_abort

* Upgrade PySwitchbot to 0.53.2

* change unit to volt

* upgrade pySwitchbot dependency

* bump lib, will be split into a seperate PR after testing is finished

* dry

* dry

* dry

* dry

* dry

* dry

* dry

* update tests

* fixes

* fixes

* cleanups

* fixes

* fixes

* fixes

* bump again

---------

Co-authored-by: J. Nick Koston <nick@koston.org>
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-12-21 00:49:30 +01:00
Joost Lekkerkerker 9a0035e090
Fix Mealie test coverage (#133659) 2024-12-20 23:45:54 +01:00
Michael Hansen 8607ba884c
Bump intents to 2024.12.20 (#133676) 2024-12-20 14:23:12 -05:00
Erik Montnemery a23b37114e
Improve recorder data migrator tests (#133628) 2024-12-20 07:41:14 -10:00
Abílio Costa 17f0c24895
Replace tests for Idasen Desk with parameterized test (#133672) 2024-12-20 18:24:57 +01:00
Steven B. 6ed345f773
Add check for client errors to stream component (#132866) 2024-12-20 07:20:24 -10:00
Andre Lengwenus 92195ff77d
Bump pypck to 0.8.1 (#133646)
Co-authored-by: Robert Resch <robert@resch.dev>
2024-12-20 17:10:37 +01:00
Erik Montnemery 5afb9a5053
Validate password before restoring backup (#133647)
* Validate password before restoring backup

* Raise specific error when password is incorrect
2024-12-20 15:43:46 +01:00
shapournemati-iotty 1c0135880d
Add outlet device class to iotty switch entity (#132912)
* upgrade iottycloud lib to 0.3.0

* Add outlet

* test outlet turn on and turn off

* test add outlet

* Refactor code to use only one SwitchEntity  with an EntityDescription to distinguish Outlet and Lightswitch

* Refactor switch entities to reduce duplicated code

* Refactor tests to reduce duplicated code

* Refactor code to improve abstraction layer using specific types instead of generics

* Remove print and redundant field
2024-12-20 15:33:05 +01:00
Erik Montnemery f49111a4d9
Bump aiohasupervisor to version 0.2.2b4 (#133652)
* Bump aiohasupervisor to version 0.2.2b4

* Update test
2024-12-20 09:23:21 -05:00
Erik Montnemery 10478f4ca5
Fix logic in backup retention filter (#133654) 2024-12-20 09:19:57 -05:00
Erik Montnemery 7d04eef5c5
Reject duplicates in WS command backup/config/update (#133650)
* Reject duplicates in WS command backup/config/update

* Add tests
2024-12-20 15:06:55 +01:00
Erik Montnemery 4c96b83297
Fix reading extra metadata for local backups (#133643) 2024-12-20 13:13:25 +01:00
Josef Zweck bddd8624bb
Add scale support to lamarzocco (#133335) 2024-12-20 12:24:15 +01:00
Joakim Sørensen 10191e7a23
Add async_register_backup_agents_listener to cloud/backup (#133584)
* Add async_register_backup_agents_listener to cloud/backup

* Coverage

* more coverage
2024-12-20 08:55:00 +01:00
G Johansson ad34bc8910
Add min/max price sensor to Nord Pool (#133534)
* Add min/max price sensor to Nord Pool

* Last fixes

* Make link in strings

* Replace func
2024-12-20 08:26:36 +01:00
Manu 26212798a3
Fixes and code cleanup for IronOS integration (#133579)
* Fix typing and cleanup in IronOS integration

* fix test not using freezer

* changes

* fix timedelta
2024-12-20 08:25:08 +01:00
J. Nick Koston 551a584ca6
Handle mqtt.WebsocketConnectionError when connecting to the MQTT broker (#133610)
fixes #132985
2024-12-19 21:39:39 +01:00
Joost Lekkerkerker 61e5f10d12
Fix Twinkly raise on progress (#133601) 2024-12-19 20:27:08 +01:00
adam-the-hero 2413fc4c0d
Fix Watergate Water meter volume sensor (#133606) 2024-12-19 20:25:24 +01:00
Joost Lekkerkerker 52683c5f75
Improve Airgradient config flow tests (#133594) 2024-12-19 19:58:33 +01:00
Marcel van der Veldt a97434976e
Handle null value for elapsed time in Music Assistant (#133597) 2024-12-19 19:00:18 +01:00
Allen Porter a3ef3cce3e
Improve Google Tasks coordinator updates behavior (#133316) 2024-12-19 16:41:47 +01:00
Erik Montnemery 255f85eb2f
Fix boot loop after restoring backup (#133581) 2024-12-19 16:04:59 +01:00
Stefan Agner 962f1bad32
Add mW as unit of measurement for Matter electrical power sensors (#133504) 2024-12-19 11:40:05 +00:00
Erik Montnemery dd215b3d5d
Revert "Revert "Simplify recorder RecorderRunsManager (#131785)"" (#133564)
Revert "Revert "Simplify recorder RecorderRunsManager" (#133201)"

This reverts commit 980b8a91e6.
2024-12-19 12:32:15 +01:00
Erik Montnemery bb7abd037c
Revert "Revert "Improve recorder history queries (#131702)"" (#133561)
Revert "Revert "Improve recorder history queries (#131702)" (#133203)"

This reverts commit 74e4654c26.
2024-12-19 11:50:12 +01:00
Erik Montnemery a76f82080b
Create repair issues when automatic backup fails (#133513)
* Create repair issues when automatic backup fails

* Improve test coverage

* Adjust issues
2024-12-19 10:40:07 +01:00
J. Nick Koston 69a8d3f3c1
Revert "Optimize start time state queries for PostgreSQL" (#133555) 2024-12-18 23:01:58 -10:00
Stefan Agner 681863f80e
Use mV and mA as units for electrical power measurement in Matter (#133505) 2024-12-19 08:32:46 +01:00
J. Nick Koston 99698ef95d
Optimize start time state queries for PostgreSQL (#133228) 2024-12-18 19:41:53 -10:00
Franck Nijhof 3fe08a7223
Add zeroconf discovery to Peblar Rocksolid EV chargers (#133529) 2024-12-19 00:39:14 +01:00
Franck Nijhof 9f3c549f8d
Add integration setup tests to Peblar Rocksolid EV Chargers (#133532) 2024-12-18 23:46:18 +01:00
Raphael Hehl e4bb351d2d
Bump uiprotect to 7.1.0 (#133520)
* Bump uiprotect to version 7.1.0

* Add aiports to bootstrap fixture in unifiprotect tests
2024-12-18 21:41:22 +01:00
Erik Montnemery ff8bc763c3
Ensure indices needed by data migrators exist (#133367)
* Ensure indices needed by data migrators exist

* Update test

* Improve test

* Ignore index error on char(0) columns

* Adjust tests

* Address review comments

* Add comment motivating magic number
2024-12-18 21:29:52 +01:00
dontinelli 8a8be71f96
Add tests for cover and increase test coverage for slide_local (#133515) 2024-12-18 20:53:05 +01:00
starkillerOG 19e6867f1a
Reolink translate errors (#132301) 2024-12-18 20:22:33 +01:00
mvn23 0ff2a0d66d
Add "cancel room setpoint override" button to opentherm_gw (#132162) 2024-12-18 19:46:30 +01:00
Thomas55555 51bead3229
Update number platform values before add in APSystems and add tests (#131938)
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2024-12-18 19:34:49 +01:00
Manu 352e948d56
Add tests for already_configured erros in IronOS integration (#132265) 2024-12-18 19:33:33 +01:00
Manu 70ad4ee454
Add select platform to IronOS (#132218) 2024-12-18 19:32:51 +01:00
TJ Horner 53ef96c63e
weatherkit: use stale data for up to an hour if updates fail (#130398) 2024-12-18 19:21:03 +01:00
Franck Nijhof bb2d027532
Add Peblar Rocksolid EV Chargers integration (#133501)
* Add Peblar Rocksolid EV Chargers integration

* Process review comments
2024-12-18 19:11:13 +01:00
Erik Montnemery 51d63ba508
Store automatic backup flag in backup metadata (#133500) 2024-12-18 18:30:46 +01:00
peteS-UK 920de90603
Increase Squeezebox config_flow test coverage to 100% (#133484)
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-12-18 18:22:22 +01:00
Erik Montnemery 5516f3609d
Rename strategy backup to automatic backup (#133489)
* Rename strategy backup to automatic backup

* Update homeassistant/components/backup/config.py

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

---------

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2024-12-18 17:35:11 +01:00
dontinelli d6c201de4a
Add exceptions and translations for slide_local (#133490) 2024-12-18 15:33:11 +01:00
mkmer c9f1829c0b
Add (de)humidifier platform to Honeywell (#132287)
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-12-18 15:27:40 +01:00
dontinelli 1e075cdac7
Add diagnostics to slide_local (#133488) 2024-12-18 15:21:17 +01:00
Maciej Bieniek 3132700492
Add ability to translate ENUM sensor states in Unifi integration (#131921) 2024-12-18 15:02:44 +01:00
adam-the-hero 943b1d9f08
Add sensors platform to Watergate integration (#133015) 2024-12-18 14:52:25 +01:00
Guido Schmitz 9716183997
Add entity translations to devolo Home Control (#132927) 2024-12-18 14:38:29 +01:00
Andre Lengwenus a46a0ad2b4
Add device_id parameter to LCN actions (service calls) (#129590) 2024-12-18 14:35:02 +01:00
J. Diego Rodríguez Royo c06bc53724
Deprecate Home Connect program switches (#131641) 2024-12-18 14:26:37 +01:00
Erik Montnemery ecb3bf79f3
Revert "Add support for subentries to config entries" (#133470)
Revert "Add support for subentries to config entries (#117355)"

This reverts commit ad15786115.
2024-12-18 13:51:05 +01:00
Joost Lekkerkerker 2aba1d399b
Rename test file to singular form (#133482) 2024-12-18 12:47:30 +00:00
greyeee be25cb7aa7
Add support for SwitchBot Relay Switch 1 and Relay Switch 1PM (#132327) 2024-12-18 13:19:45 +01:00
Erik Montnemery 992afc4cd3
Set the with_strategy_settings to None for unknown backups (#133466) 2024-12-18 11:27:07 +01:00
Joakim Sørensen 869a0d7abc
Add name to cloud connection info response (#133468) 2024-12-18 11:01:38 +01:00
J. Diego Rodríguez Royo a6520d2627
Handle Home Connect error at diagnostics (#131644) 2024-12-18 10:52:45 +01:00
Ron Weikamp a2be5a383c
Bugfix: also schedule time based integration when source is 0 (#133438)
* Bugfix also schedule time based integration when source is 0

* Update tests/components/integration/test_sensor.py

Co-authored-by: Diogo Gomes <diogogomes@gmail.com>

* Improve comment in test. Remove redundant assertion.

---------

Co-authored-by: Diogo Gomes <diogogomes@gmail.com>
2024-12-18 10:41:46 +01:00
Tomer Shemesh 39d781905d
Add ssdp discovery to Onkyo (#131066) 2024-12-18 10:21:37 +01:00
Noah Husby a449ca65be
Improve test coverage for Russound RIO (#133096)
* Improve test coverage for Russound RIO

* Update

* Update
2024-12-18 09:33:17 +01:00
Arie Catsman 4c91d1b402
Add support for ACB batteries to Enphase Envoy (#131298)
* Add support for ACB batteries to Enphase Envoy

* Add tests for ACB battery support in ENphase Envoy

* make acb state sensordeviceclass ENUM

* Capitalize strings and use common idle
2024-12-18 08:48:37 +01:00
Noah Husby fab92d1cf8
Add reconfigure flow to Russound RIO (#133091)
* Add reconfigure flow to Russound RIO

* Mark reconfiguration flow as done

* Update

* Update
2024-12-18 08:40:27 +01:00
Assaf Inbal c10473844f
Add sensors to Ituran integration (#133359)
Add sensors to Ituran
2024-12-18 08:36:42 +01:00
J. Nick Koston 9bff9c5e7b
Ensure screenlogic retries if the protocol adapter is still booting (#133444)
* Ensure screenlogic retries if the protocol adapter is still booting

If the protocol adapter is still booting, it will disconnect and never
retry

```
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 640, in __async_setup_with_context
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/screenlogic/__init__.py", line 65, in async_setup_entry
    await gateway.async_connect(**connect_info)
  File "/usr/local/lib/python3.13/site-packages/screenlogicpy/gateway.py", line 142, in async_connect
    connectPkg = await async_connect_to_gateway(
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<4 lines>...
    )
    ^
  File "/usr/local/lib/python3.13/site-packages/screenlogicpy/requests/login.py", line 107, in async_connect_to_gateway
    mac_address = await async_gateway_connect(transport, protocol, max_retries)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/screenlogicpy/requests/login.py", line 77, in async_gateway_connect
    raise ScreenLogicConnectionError("Host unexpectedly disconnected.")
screenlogicpy.const.common.ScreenLogicConnectionError: Host unexpectedly disconnected.
```

* coverage
2024-12-17 20:57:43 -05:00
G Johansson 4c60e36f4f
Add Get price service to Nord Pool (#130185)
* Add get_price service to Nord Pool

* Tests and fixes

* Fixes

* Not used fixtures

* update qs

* Fixes

* docstring

* Remove selector from strings

* Mod service
2024-12-17 21:59:20 +01:00
Klaas Schoute 21c3bf48f9
Allow only single instance of easyenergy integration (#133447) 2024-12-17 21:02:39 +01:00
Louis Christ 9c26654db7
Use entity services in bluesound integration (#129266) 2024-12-17 20:44:38 +01:00
Klaas Schoute c9ca1f63ea
Allow only single instance of energyzero integration (#133443) 2024-12-17 20:44:24 +01:00
Richard Kroegel 8bbbbb00d5
Limit unique_id migration to platform for BMW (#131582) 2024-12-17 20:43:09 +01:00
G Johansson d785c4b0b1
Add optional category in OptionsFlow to holiday (#129514) 2024-12-17 20:20:26 +01:00
Erik Montnemery d22668a166
Don't run recorder data migration on new databases (#133412)
* Don't run recorder data migration on new databases

* Add tests
2024-12-17 20:02:12 +01:00
Erik Montnemery 633433709f
Clean up backups after manual backup (#133434)
* Clean up backups after manual backup

* Address review comments
2024-12-17 20:00:02 +01:00
Kevin Stillhammer 98d5020690
Support units and filters in async_get_travel_times_service for waze_travel_time (#130776) 2024-12-17 18:00:23 +01:00
Erik Montnemery 89eda9e068
Don't raise when removing non-existing cloud backup (#133429) 2024-12-17 17:47:17 +01:00
Erik Montnemery 25a63863cb
Adapt hassio backup agent to supervisor changes (#133428) 2024-12-17 17:21:13 +01:00
Krisjanis Lejejs a14aca31e5
Add MFA login flow support for cloud component (#132497)
* Add MFA login flow support for cloud component

* Add tests for cloud MFA login

* Update code to reflect used package changes

* Update code to use underlying package changes

* Remove unused change

* Fix login required parameters

* Fix parameter validation

* Use cv.has_at_least_one_key for param validation

---------

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2024-12-17 16:44:50 +01:00
Erik Montnemery 4adfd52dc0
Improve hassio backup agent test coverage (#133426) 2024-12-17 15:08:03 +01:00
Erik Montnemery 8b3cd41396
Improve hassio backup agent test coverage (#133424) 2024-12-17 13:55:04 +01:00
Cyrill Raccaud 89946348df
Add reconfigure to Cookidoo integration (#133144)
* add reconfigure

* merge steps

* comments
2024-12-17 13:54:07 +01:00
Erik Montnemery a4588c80d5
Bump aiohasupervisor to version 0.2.2b2 (#133417)
* Bump aiohasupervisor to version 0.2.2b2

* Update test
2024-12-17 13:18:26 +01:00
G Johansson 637614299c
Fix strptime in python_script (#133159)
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2024-12-17 12:41:18 +01:00
epenet 991864b38c
Fix schema translation checks for nested config-flow sections (#133392) 2024-12-17 12:02:53 +01:00
Jonas Fors Lellky ce0117b2b8
Fix fan setpoints for flexit_bacnet (#133388) 2024-12-17 11:36:45 +01:00
epenet 0dbd5bffe6
Fix incorrect schema in config tests (#133404) 2024-12-17 11:26:51 +01:00
dotvav c0264f73b0
Add palazzetti status sensor (#131348)
* Add status sensor

* Lower the case of strings keys

* Make const Final

* Fix typo

* Fix typo

* Merge similar statuses

* Increase readability

* Update snapshot
2024-12-17 10:17:50 +01:00
Jan Bouwhuis ac6d718094
Fix mqtt reconfigure flow (#133315)
* FIx mqtt reconfigure flow

* Follow up on code review
2024-12-17 09:37:46 +01:00
Manu 9ca9e787b2
Add tests for Habitica integration (#131780)
* Add tests for Habitica integration

* update iqs
2024-12-17 09:07:18 +01:00
Ludovic BOUÉ 1512cd5fb7
Add Matter battery replacement description (#132974) 2024-12-17 00:03:32 +01:00
Dan Raper a374c7e4ca
Add reauth flow to Ohme (#133275)
* Add reauth flow to ohme

* Reuse config flow user step for reauth

* Tidying up

* Add common _validate_account method for reauth and user config flow steps

* Add reauth fail test
2024-12-16 23:54:33 +01:00