Erik Montnemery
3e62c6ae2f
Move core config functionality to its own module ( #129065 )
...
* Move core config functionality to its own module
* Adjust test
2024-10-24 13:34:51 +02:00
epenet
975363b660
Add missing hass type hint in component tests (c) ( #124067 )
2024-08-18 15:35:31 +02:00
epenet
ad84ff18eb
Use remove_device helper in tests (1/2) ( #116240 )
...
* Use remove_device helper in tests
* Update test_tag.py
* Update test_tag.py
2024-04-30 12:52:33 +02:00
J. Nick Koston
8e645c9b32
Fix flakey cast discovery test ( #115063 )
2024-04-06 13:15:14 -10:00
J. Nick Koston
ce9d4c8683
Fix flakey cast discovery stop test ( #114605 )
...
https://github.com/home-assistant/core/actions/runs/8515215623/job/23322322954?pr=114602
2024-04-01 21:34:54 -04:00
Paulus Schoutsen
f01235ef74
Re-organize conversation integration ( #114502 )
...
* Re-organize conversation integration
* Clean up 2 more imports
* Re-export models
* Fix imports
* Uno mas
* Rename agents to models
* Fix cast test that i broke?
* Just blocking till I'm done
* Wrong place
2024-03-31 00:05:25 -04:00
J. Nick Koston
9a79320861
Mark executor jobs as background unless created from a tracked task ( #114450 )
...
* Mark executor jobs as background unless created from a tracked task
If the current task is not tracked the executor job should not
be a background task to avoid delaying startup and shutdown.
Currently any executor job created in a untracked task or
background task would end up being tracked and delaying
startup/shutdown
* import exec has the same issue
* Avoid tracking import executor jobs
There is no reason to track these jobs as they are always awaited
and we do not want to support fire and forget import executor jobs
* fix xiaomi_miio
* lots of fire time changed without background await
* revert changes moved to other PR
* more
* more
* more
* m
* m
* p
* fix fire and forget tests
* scrape
* sonos
* system
* more
* capture callback before block
* coverage
* more
* more races
* more races
* more
* missed some
* more fixes
* missed some more
* fix
* remove unneeded
* one more race
* two
2024-03-30 00:16:53 -04:00
Joost Lekkerkerker
6bb4e7d62c
Bump ruff to 0.3.4 ( #112690 )
...
Co-authored-by: Sid <27780930+autinerd@users.noreply.github.com>
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-03-26 00:02:16 +01:00
Sid
00ec7f11f0
Enable Ruff rule PT007 ( #113764 )
...
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2024-03-19 09:01:07 +01:00
Sid
69564b1a17
Add ruff rule PIE800 ( #113619 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-03-16 16:31:30 -10:00
Marc Mueller
38adfbf1a3
Add empty line after module docstring [tests a-e] ( #112708 )
2024-03-08 08:50:25 -05:00
J. Nick Koston
33ff6b5b6e
Avoid creating tasks for checking integrations platforms ( #110795 )
...
* Avoid creating tasks for checking integrations platforms
This is a followup to #110743 to avoid creating a task to check
if the integration platform exists. We created tasks because
we needed to await async_get_integrations but since its always
called from EVENT_COMPONENT_LOADED firing, we can use the
async_get_loaded_integration version which does not need
to be awaited. This eliminates one task for every loaded
component
* there is no more race risk
* reduce
* coro or callback
* reduce
* tweak
* race safe
* fix type
* fixes
* use built-in helper to make it smaller
* use built-in helper to make it smaller
* use built-in helper to make it smaller
* add coverage to ensure exceptions are logged
* improve readability a bit
* platforms
2024-02-18 01:07:18 +01:00
Erik Montnemery
06a21d4ed9
Bump pychromecast to 14.0.0 ( #108374 )
...
* Pass unregister callback to cast HomeAssisstantController
* Update tests
* Bump pychromecast to 14.0.0
* Fix lint warning, adjust tests
* Improve test coverage
2024-02-15 20:14:01 +01:00
Marc Mueller
d2dee9e327
Update ruff to 0.1.15 ( #109303 )
2024-02-01 13:29:01 +01:00
Ville Skyttä
24b1e01d71
Update Ruff to 0.1.8, avoid linter/formatter conflicts ( #106080 )
...
* Disable Ruff rules that may conflict with the formatter
* Upgrade Ruff to 0.1.8
- https://github.com/astral-sh/ruff/releases/tag/v0.1.7
- https://github.com/astral-sh/ruff/releases/tag/v0.1.8
* Format with Ruff 0.1.8
2023-12-20 23:55:09 +01:00
Jan-Philipp Benecke
9ab1cb83d8
Update a-c* tests to use entity & device registry fixtures ( #103793 )
...
* Update a-c* tests to use entity & device registry fixtures
* Revert some changes
* Revert formatting
* retrigger CI
2023-11-12 13:45:30 -05:00
Ville Skyttä
3b4774d9ed
Remove unnnecessary pylint configs from components/[a-d]* ( #98911 )
2023-08-24 00:54:02 +02:00
Erik Montnemery
b254218dd6
Remove `base_url` configuration option from `tts` ( #94905 )
2023-06-21 11:20:33 +02:00
Erik Montnemery
02b76be0ba
Use config entry setup in cast tests ( #93595 )
...
* Use config entry setup in cast tests
* Remove import step from config flow
* Remove import tests
* Fix tests
2023-05-27 21:07:54 -04:00
Erik Montnemery
e3c16e634b
Allow exposing entities not in the entity registry to assistants ( #92363 )
2023-05-02 22:08:09 +02:00
Erik Montnemery
41ea8fa9b4
Guess media type when cast is playing media without media type ( #90048 )
2023-03-21 10:01:35 -04:00
Paulus Schoutsen
f465561536
Fix dangling task for cast ( #88285 )
2023-02-17 18:43:40 +01:00
Franck Nijhof
ed79265843
Enable Ruff PT006 ( #88165 )
...
* Enable Ruff PT006
* Adjust existing cases
* Fix tests
* Remove unneeded parentheses
2023-02-15 14:09:50 +01:00
epenet
fa7acb4f0d
Add type hints to integration tests (part 3) ( #87844 )
2023-02-10 16:05:01 +01:00
epenet
807c69f621
Add type hints to integration tests (b-c) ( #87698 )
2023-02-08 18:08:43 +01:00
Franck Nijhof
c56832bb2c
Enable Ruff SIM300 ( #86793 )
2023-01-30 11:03:23 +01:00
epenet
30bf0634fe
Add per-file-ignore to pylint ( #86289 )
2023-01-22 17:26:24 +01:00
Franck Nijhof
24fdd588fd
Code styling tweaks to the tests - Part 1 ( #86192 )
2023-01-20 13:52:46 +01:00
Franck Nijhof
05c32c51fd
Code styling tweaks to the Cast integration ( #85560 )
2023-01-10 09:57:13 +01:00
epenet
0ac581a0b1
Cleanup EntityFeature in tests ( #78859 )
2022-09-21 10:48:55 +02:00
epenet
41d2ac3943
Cleanup MediaClass and MediaType in tests ( #78817 )
...
Cleanup MediaClass/MediaType in tests
2022-09-20 17:55:13 +02:00
Erik Montnemery
996544da2d
Poll cast groups when media player is added or reconnected ( #74610 )
2022-07-07 14:51:16 +02:00
J. Nick Koston
6c3baf03aa
Make dispatcher setup lazy ( #74374 )
2022-07-04 14:58:35 +02:00
Erik Montnemery
00810235c9
Track tasks adding entities ( #73828 )
...
* Track tasks adding entities
* Update homeassistant/config_entries.py
* fix cast tests
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-06-29 09:38:35 +02:00
Erik Montnemery
d9a7c4a483
Only lookup unknown Google Cast models once ( #71348 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-05-05 11:04:00 -07:00
Erik Montnemery
66551e6fcb
Add state buffering to media_player and use it in cast ( #70802 )
2022-04-27 09:49:50 +02:00
Erik Montnemery
ce302f4540
Play first item in m3u and pls playlists when casting ( #70047 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-04-26 13:16:37 -07:00
Erik Montnemery
23d9e135bc
Allow 'turning on' cast groups ( #70642 )
...
* Allow 'turning on' cast groups
* Adjust test
2022-04-25 14:41:24 +02:00
Erik Montnemery
1645ab25a6
Use quickplay when casting splash for mediaplayer.turn_on ( #69866 )
2022-04-12 10:06:25 -07:00
Paulus Schoutsen
929df2bc29
Improve error handling process_play_media_url ( #68322 )
2022-03-20 20:25:15 -07:00
Paulus Schoutsen
8bbbd1947d
Raise if referenced entity does not support service ( #68394 )
2022-03-20 16:01:58 -07:00
Paulus Schoutsen
d68ada74cc
Restore children media class ( #67409 )
2022-03-01 15:14:14 -08:00
Erik Montnemery
148762ce3f
Improve cast test for removing device ( #67385 )
2022-02-28 11:08:27 -08:00
Paulus Schoutsen
459e6c273b
Track hidden items in media source ( #67096 )
2022-02-23 09:51:01 +01:00
Erik Montnemery
31867d54b6
Add Google Cast groups to device registry ( #66805 )
2022-02-22 10:26:41 +01:00
Erik Montnemery
c582aecc10
Deduplicate code in cast media_player ( #66815 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-02-19 21:14:31 -08:00
Erik Montnemery
f1648960f5
Improve cleanup of Google Cast entities ( #66801 )
2022-02-18 15:05:14 +01:00
Erik Montnemery
795d249c8c
Small improvement of cast test ( #66513 )
2022-02-14 15:06:33 +01:00
Paulus Schoutsen
716a1e2a64
Add camera media source ( #65977 )
2022-02-08 14:32:02 -08:00
Erik Montnemery
7cc6770f83
Revert "Make idle chromecasts appear as idle instead of off" ( #66005 )
2022-02-07 20:24:30 +01:00