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
J. Nick Koston
77f416fa04
Ensure cast tests add config entry before updating it ( #110441 )
...
* Ensure cast tests add config entry before updating it
* time to walk away for a bit
* missed two
2024-02-13 05:01:37 +01:00
J. Nick Koston
92842c28d2
Ensure cast tests add config entry before updating it ( #110416 )
2024-02-12 23:06:13 +01:00
Marc Mueller
c82933175d
Use builtin TimeoutError [a-d] ( #109678 )
2024-02-05 11:31:33 +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
Aarni Koskela
706add4a57
Switch formatting from black to ruff-format ( #102893 )
...
Co-authored-by: Franck Nijhof <git@frenck.dev>
2023-11-27 14:38:59 +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
Franck Nijhof
9030ca05b1
Enable Ruff SIM118 ( #87772 )
2023-02-15 12:39:12 +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
Franck Nijhof
62dcbe5258
Enable Ruff PT001 ( #86730 )
2023-01-26 18:05:05 +01:00
J. Nick Koston
5285d057d2
Migrate cast to use async_forward_entry_setups ( #86558 )
...
Replaces deprecated async_setup_platforms with async_forward_entry_setups
2023-01-25 10:12:58 +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
Franck Nijhof
7cd68381f1
Search/replace RESULT_TYPE_* by FlowResultType enum ( #74642 )
2022-07-07 19:57:36 +03: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
Franck Nijhof
39a00ffe09
Automatically onboard Cast ( #73813 )
2022-06-22 09:49:54 +02:00
Erik Montnemery
44f332ed5f
Improve cast HLS detection ( #72787 )
2022-05-31 20:35:56 -07:00
Erik Montnemery
e5870c65ee
Add missing cast test fixture ( #71595 )
2022-05-09 18:41:25 +02:00
Erik Montnemery
d284e579bb
Improve Google Cast detection of HLS playlists ( #71564 )
2022-05-09 13:57:32 +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