Erik Montnemery
b0c36d7729
Add cast platform for extending Google Cast media_player ( #65149 )
...
* Add cast platform for extending Google Cast media_player
* Update tests
* Refactor according to review comments
* Add test for playing using a cast platform
* Apply suggestions from code review
Co-authored-by: jjlawren <jjlawren@users.noreply.github.com>
* Pass cast type instead of a filter function when browsing
* Raise on invalid cast platform
* Test media browsing
Co-authored-by: jjlawren <jjlawren@users.noreply.github.com>
2022-01-31 10:50:05 +01:00
Erik Montnemery
d770a54881
Minor refactoring of cast media_player ( #65125 )
2022-01-29 16:13:59 +01:00
Erik Montnemery
c470733feb
Fix cast support for browsing local media source ( #65115 )
2022-01-28 11:38:09 +01:00
Paulus Schoutsen
8b3e923f4b
Fix Plex media class in Cast media browser ( #64995 )
2022-01-26 11:00:31 -08:00
jjlawren
1e34cc62ba
Support Plex in Cast media browser ( #64994 )
2022-01-26 10:51:08 -08:00
jjlawren
cdad1a9f27
Use local Sonos API for Plex music playback ( #63357 )
2022-01-25 21:10:11 -08:00
Paulus Schoutsen
73fd19d4e2
Only show music files for Cast Audio in media browser ( #64683 )
2022-01-24 13:54:09 +01:00
Paulus Schoutsen
63f8e437ed
Add Home Assistant Content user ( #64337 )
2022-01-21 10:06:39 -08:00
Josh Soref
6c24aa8ed9
spelling: components/cast ( #64241 )
...
Co-authored-by: Josh Soref <jsoref@users.noreply.github.com>
2022-01-19 19:43:20 +01:00
epenet
8bcf495caf
Import tts ( #64212 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-17 22:01:28 -08:00
Erik Montnemery
09986436a1
Make idle chromecasts appear as idle instead of off ( #61786 )
2022-01-07 14:19:41 +01:00
epenet
4d8c9fc1ab
Add basic type hints to cast ( #62746 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-29 12:30:16 +01:00
Erik Montnemery
eda9291ca1
Improve google cast state reporting ( #62587 )
2021-12-22 14:54:36 +01:00
Erik Montnemery
a7a0cfd9e6
Make it possible to turn on audio only google cast devices ( #62420 )
2021-12-20 11:18:11 -08:00
Erik Montnemery
c96606df68
Don't use the homeassistant media app when casting media ( #62385 )
2021-12-20 14:28:02 +01:00
Erik Montnemery
f17164fa47
Don't override pychromecast MediaController's APP ID ( #61796 )
2021-12-15 10:40:37 +01:00
Erik Montnemery
615198a58f
Use pychromecast CastInfo type in cast integration ( #60205 )
2021-11-23 23:17:58 +01:00
Erik Montnemery
593bc866f0
Bump pychromecast to 10.1.0 ( #59719 )
...
* Prepare for pychromecast 10
* Bump pychromecast to 10.0.0
* Bump pychromecast to 10.1.0
* Update homeassistant/components/cast/discovery.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-11-17 09:05:25 +01:00
Erik Montnemery
e88ea2d48c
Show cast as playing when an app without media support is active ( #59714 )
2021-11-15 20:13:43 +01:00
Erik Montnemery
a29264518c
Don't allow turning on audio only chromecasts ( #59495 )
...
* Don't allow turning on audio only chromecasts
* Improve tests
* Adjust tests
2021-11-11 12:33:15 +01:00
Erik Montnemery
a14131a679
Suppress media status when the lovelace cast app is active ( #59481 )
...
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
2021-11-10 22:33:07 -08:00
Bram Kragten
47b6755177
Google Cast: Use own media player app ( #55524 )
2021-11-10 19:40:49 +01:00
Robert Hillis
137d41d8b4
Use DeviceInfo Class B-C ( #58217 )
2021-10-23 11:41:32 +02:00
Marc Mueller
f149bef9f3
Use assignment expressions 18 ( #57967 )
2021-10-18 18:36:35 +02:00
Robert Hillis
13443310fe
Use entity class attributes for Cast ( #53348 )
2021-07-27 20:03:13 +02:00
Erik Montnemery
600bea2459
Enable basic type checking for Google cast ( #52434 )
...
* Enable basic type checking for Google cast
* tweak
2021-07-05 11:14:41 +02:00
blawford
0709aa7c8c
Pass metadata when casting an app ( #51148 )
...
* Pass through metadata when casting an app
* Remove passing kwargs to quick_play
Add metadata to the app_data dict.
* Include pass-through of metadata
* Bump pychromecast to 9.2.0
* Add changes to test to verify metadata
* Fix order of imports
2021-06-14 08:48:32 +02:00
Shay Levy
cf228e3fe5
Add constructor return type in integrations A-D ( #50903 )
2021-05-20 18:51:39 +03:00
Erik Montnemery
575b8340fc
Fix entity_id change for Google Cast ( #49743 )
2021-04-28 01:40:41 +02:00
Erik Montnemery
96e7ae94f8
Fix config entry reference for Home Assistant Cast user ( #49729 )
...
* Fix config entry reference for Home Assistant Cast user
* Simplify config_entry lookup
2021-04-27 11:20:10 +02:00
Franck Nijhof
006bcde435
Remove HomeAssistantType alias - Part 3 ( #49339 )
2021-04-17 12:48:03 +02:00
Erik Montnemery
f5545badac
Quote media_source paths ( #49054 )
...
* Quote path in async_sign_path
* Address review comments, add tests
* Update tests/testing_config/media/Epic Sax Guy 10 Hours.mp4
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2021-04-12 18:32:12 +02:00
Ph-Wagner
b66c4a9dca
Extend Google Cast media source URL expiry to 24h ( #48937 )
...
* Extend media source URL expiry to 12h
closes #46280
After checking out https://github.com/home-assistant/core/pull/48912 I just think why not.
* Update homeassistant/components/cast/media_player.py
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2021-04-09 18:02:06 +02:00
Erik Montnemery
46371a9e87
Fix whitespace error in cast ( #48763 )
2021-04-07 11:12:31 +02:00
J. Nick Koston
5f8fcca5ad
Solve cast delaying startup when discovered devices are slow to setup ( #48755 )
...
* Solve cast delaying startup when devices are slow to setup
* Update homeassistant/components/cast/media_player.py
Co-authored-by: Erik Montnemery <erik@montnemery.com>
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2021-04-07 09:39:04 +02:00
Franck Nijhof
db355f9b23
Merge of nested IF-IF cases - A-C ( #48365 )
2021-03-27 10:58:38 +01:00
Erik Montnemery
3188f796f9
Add allowed UUIDs and ignore CEC to Google Cast options flow ( #47269 )
2021-03-25 14:06:01 +01:00
Franck Nijhof
6932cf9534
Use contextlib.suppress where possible ( #48189 )
2021-03-23 14:36:43 +01:00
Marc Mueller
7c0734bdd5
Update typing 05 ( #48038 )
2021-03-17 23:43:55 +01:00
Erik Montnemery
96cc17b462
Add support for a list of known hosts to Google Cast ( #47232 )
2021-03-01 15:18:18 -08:00
Erik Montnemery
dfbb653107
Bump pychromecast to 9.0.0 ( #47086 )
...
* Adapt to Pychromecast 9.0.0
* Bump pychromecast to 9.0.0
* Fix lint issues
2021-02-26 13:43:53 +01:00
Erik Montnemery
c66d9ea25c
Hide volume control for cast devices with fixed volume ( #46328 )
2021-02-10 08:39:10 -05:00
Erik Montnemery
02bfc68842
Support dynamic Google Cast groups ( #44484 )
...
* Re-add support for dynamic groups
* Add tests
* Add support for manufacturer
* Refactor support for dynamic groups
* Bump pychromecast to 7.7.0
* Bump pychromecast to 7.7.1
* Tweak tests
* Apply review suggestion
2021-01-06 09:23:18 +01:00
Erik Montnemery
31b806ced1
Revert "Change http to auto for cast media image url" ( #44327 )
2020-12-17 17:43:52 +01:00
springstan
d5efb3e3de
Remove temporary variable by only retrieving needed value ( #42522 )
2020-11-29 00:44:25 +01:00
jjlawren
e6e4c9cf59
Allow Cast to play Plex media ( #41869 )
...
* Allow Cast to play Plex media
* Add Plex to after_dependencies, add missing constant
* Extract function from Sonos service to allow media lookups
* Move to non-async method
* Check if media_id exists
* Add test to make codecov happy
2020-10-19 16:34:22 -05:00
J. Nick Koston
5c540dcfcf
Update cast to use async_add_executor_job ( #41794 )
2020-10-13 15:39:43 -05:00
Erik Montnemery
3f263d5cbe
Remove deprecated host & platform configuration for cast ( #41402 )
2020-10-07 18:01:34 +02:00
Paulus Schoutsen
4d5948b4d0
Use dict syntax ( #41325 )
2020-10-06 15:02:23 +02:00
Franck Nijhof
f95416bd98
Remove deprecation invalidation version from cast integration ( #41197 )
2020-10-04 12:54:03 +02:00