Commit Graph

76070 Commits

Author SHA1 Message Date
Sid c24ae01a43
Unignore Ruff E731 (#115564) 2024-04-14 00:15:10 -05:00
Sid 3799d20d43
Enable Ruff B905 (#114197) 2024-04-14 00:14:26 -05:00
J. Nick Koston b70edb89bf
Fix missing Home in listener deprecation message (#115559) 2024-04-13 20:44:07 -05:00
J. Nick Koston 0feea624f9
Migrate rfxtrx to use async_track_state_change_event (#115556) 2024-04-13 20:37:01 -05:00
J. Nick Koston 41f5325ce3
Refactor _async_setup_component to remove need for C901 (#115553) 2024-04-13 19:46:37 -05:00
J. Nick Koston 8da7de1fea
Remove attr usage in event helper (#115554) 2024-04-13 19:46:23 -05:00
J. Nick Koston dad03e7283
Remove sleep in async_setup_component (#115515)
Co-authored-by: TheJulianJES <TheJulianJES@users.noreply.github.com>
2024-04-13 19:34:28 -05:00
J. Nick Koston 14b794b0f7
Migrate config entry reauth to use eager_start (#115549) 2024-04-13 18:38:33 -05:00
J. Nick Koston 7e84158fad
Avoid double dict conversion in bluetooth serialize_entity_description (#115551) 2024-04-13 18:08:38 -05:00
J. Nick Koston 09b209245a
Only calculate native_value once in mobile_app (#115550)
native_value is read a few times during the state write.

Use _attr_native_value so its only calculated once
2024-04-13 18:57:12 -04:00
Mr. Bubbles 927ea14562
Add exception translations to Bring integration (#115547)
* Add exception translations

* Add test for exceptions

* Remove unnecessary logging
2024-04-14 00:26:37 +02:00
J. Nick Koston 4955364948
Fix advantage_air disabled entity tests (#115548)
* Fix advantage_air disabled entity test

* fix both
2024-04-13 18:13:19 -04:00
J. Nick Koston 0b3627b59e
Add additional cached_property to camera entities (#115075) 2024-04-13 16:50:11 -05:00
J. Nick Koston dee99c764b
Complete ESPHome media_player coverage (#114352) 2024-04-13 16:29:14 -05:00
J. Nick Koston ee535ee611
Ensure test async_create_task eager start behavior matches production (#115517) 2024-04-13 15:58:52 -05:00
J. Nick Koston d9617a8e3a
Enable eager_start for weather platform update (#115496) 2024-04-13 15:56:14 -05:00
J. Nick Koston 0bd4064212
Update ollama config_flow task to use eager_start (#115455)
The test now adds a delay because it finished too fast
2024-04-13 16:54:21 -04:00
J. Nick Koston f452c5b84e
Add forecast subscription failure test case to nws (#115541) 2024-04-13 15:48:23 -05:00
J. Nick Koston f1ac33c246
Fix unmocked remote socket calls in sunweg tests (#115546)
Fix unmocked calls in sunweg tests
2024-04-13 16:36:33 -04:00
J. Nick Koston edd75a9d5f
Fix race in TimestampDataUpdateCoordinator (#115542)
* Fix race in TimestampDataUpdateCoordinator

The last_update_success_time value was being set after the listeners
were fired which could lead to a loop because the listener may
re-trigger an update because it thinks the data is stale

* coverage

* docstring
2024-04-13 16:35:07 -04:00
J. Nick Koston 08e2b655be
Migrate EntityRegistryDisabledHandler to use async_schedule_reload (#115544)
async_schedule_reload ensures that any setup retries are cancelled
before executing the reload. Its unlikely in this case but its
still possible
2024-04-13 16:30:59 -04:00
J. Nick Koston 1a8857aa2e
Migrate homekit ffmpeg task to use eager_start (#115543) 2024-04-13 16:29:55 -04:00
J. Nick Koston 82d0f478a5
Hold the reload lock while attempting config entry setup retry (#115538) 2024-04-13 15:26:41 -05:00
J. Nick Koston b9d4d0e15d
Avoid removing websocket_api subscription in mobile_app teardown (#115540) 2024-04-13 15:24:46 -05:00
J. Nick Koston 008c42e282
Bump py-synologydsm-api to 2.4.2 (#115499)
Co-authored-by: mib1185 <mail@mib85.de>
2024-04-13 14:38:37 -05:00
Marc Mueller 64a4d52b3c
Update pillow to 10.3.0 (#115524) 2024-04-13 18:26:33 +02:00
Robert Resch 68ba4d57d5
Remove unused CI code (#115300) 2024-04-13 17:24:02 +02:00
Jan Bouwhuis 197070486f
Set up notify group with the notify services in test (#115526) 2024-04-13 17:10:16 +02:00
Jan Bouwhuis 36bdda5669
Migrate demo notify platform (#115448)
* Migrate demo notify platform

* Update homeassistant/components/demo/notify.py

Co-authored-by: Paulus Schoutsen <balloob@gmail.com>

* Remove no needed tests

* Cleanup redundant attribute assignment

---------

Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2024-04-13 14:27:07 +02:00
Joost Lekkerkerker 5e8b46c670
Make color extractor single config entry (#115016)
* Make color extractor single config entry

* Make color extractor single config entry

* Fix
2024-04-13 13:04:39 +02:00
Jan Bouwhuis 38c7b99aef
Make legacy notify group tests independent of demo platform (#115494) 2024-04-13 12:58:31 +02:00
Marc Mueller 27f6a7de43
Revert mypy_config formatting (#115518) 2024-04-13 10:48:34 +02:00
Toni Korhonen 84a975b61e
Add Balboa spa temperature range state control (high/low) (#115285)
* Add temperature range switch (high/low) to Balboa spa integration.

* Change Balboa spa integration temperature range control from switch to select

* Balboa spa integration: Fix ruff formatting

* Balboa spa integration: increase test coverage

* Balboa spa integration review fixes: Move instance attributes as class attributes. Fix code comments.
2024-04-13 10:44:02 +02:00
Jan Bouwhuis 127c27c9a7
Isolate legacy notify tests (#115470)
* Isolate legacy notify tests

* Rebase

* Refactor
2024-04-13 10:14:58 +02:00
Sid 223fefbbfa
Enable Ruff RUF018 (#115485) 2024-04-13 09:56:33 +02:00
Sid 1a9ff8c8fa
Ignore Ruff RUF015 (#115481) 2024-04-13 09:46:04 +02:00
J. Nick Koston bb9330135d
Fix race in influxdb test (#115514)
The patch was still too late in #115442

There is no good candidate to patch here since the late operation
is the error log that is being tested.

Patching the logger did not seem like a good idea so I went with
patching to wait for the error to be emitted since emit is the public
API of the log handler and was less likely to change
2024-04-13 09:13:01 +02:00
Jan Bouwhuis 76fefaafb0
Move out demo notify tests to the notify platform (#115504)
* Move test file

* Make independent of demo platform

* Restore tests for demo platform for coverage
2024-04-13 08:18:45 +02:00
J. Nick Koston 0d0b77c9e4
Remove eager_start=False from zeroconf (#115498) 2024-04-13 00:09:42 -05:00
J. Nick Koston af2c381a0c
Bump zeroconf to 0.132.2 (#115505) 2024-04-13 00:05:08 -05:00
J. Nick Koston b9899a441c
Bump zeroconf to 0.132.1 (#115501) 2024-04-12 14:13:06 -10:00
Sid d74be6d5fe
Set Ruff RUF001-003 to ignore (#115477) 2024-04-13 00:51:36 +02:00
Bram Kragten f16ee2ded9
Update strict connection static page (#115473) 2024-04-12 23:35:59 +02:00
dontinelli 6eaf3402c6
Add re-auth-flow to fyta integration (#114972)
* add re-auth-flow to fyta integration

* add strings for reauth-flow

* resolve typing error

* update based on review comments

* Update homeassistant/components/fyta/config_flow.py

Co-authored-by: G Johansson <goran.johansson@shiftit.se>

* add async_auth

* adjustment based on review commet

* Update test_config_flow.py

* remove credentials

* Update homeassistant/components/fyta/config_flow.py

Co-authored-by: G Johansson <goran.johansson@shiftit.se>

* Update tests/components/fyta/test_config_flow.py

Co-authored-by: G Johansson <goran.johansson@shiftit.se>

* Update tests/components/fyta/test_config_flow.py

Co-authored-by: G Johansson <goran.johansson@shiftit.se>

* Update conftest.py

* Update test_config_flow.py

* Aktualisieren von conftest.py

* Update test_config_flow.py

---------

Co-authored-by: G Johansson <goran.johansson@shiftit.se>
2024-04-12 20:33:24 +02:00
karwosts 77d1e2c812
Allow customizing display name for energy device (#112834)
* Allow customizing display name for energy device

* optional typing and comment
2024-04-12 20:31:51 +02:00
Brett Adams b266224ccd
Add diagnostics to Teslemetry (#115195)
* Add diag

* Add diag and tests

* Fix redaction

* Add another energy redact

* Review Feedback

* Update snapshot

* Fixed the wrong integration

* Fix snapshot again

* Update tests/components/teslemetry/test_diagnostics.py

---------

Co-authored-by: G Johansson <goran.johansson@shiftit.se>
2024-04-12 20:27:38 +02:00
epenet bea4c52d10
Ignore coverage for aiohttp_resolver backport helper (#115177)
* Ignore coverage for aiohttp_resolver backport helper

* Adjust generate to sort core items

* Adjust validate to sort core items

* Split line

* Apply suggestion

Co-authored-by: Dave T <17680170+davet2001@users.noreply.github.com>

* Fix suggestion

---------

Co-authored-by: Dave T <17680170+davet2001@users.noreply.github.com>
2024-04-12 16:33:05 +02:00
Sid 6d22dd073c
Bump ruff to 0.3.7 (#115451)
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
2024-04-12 16:03:23 +02:00
Robert Resch 348e1df949
Add strict connection (#112387)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2024-04-12 14:47:46 +02:00
Marc Mueller f70ce8abf9
Fix ci Python cache key (#115467) 2024-04-12 13:11:24 +02:00