Commit Graph

89 Commits (265bf3e9e027c06dd3247eb99a3894f840de8d75)

Author SHA1 Message Date
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
Paulus Schoutsen 157276f4e6
Add a Lovelace cast platform (#65401) 2022-02-03 13:43:23 -08:00
Erik Montnemery 80da5c52ae
Correct cast media browse filter for audio groups (#65288) 2022-01-31 11:45:48 +01:00
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
jjlawren cdad1a9f27
Use local Sonos API for Plex music playback (#63357) 2022-01-25 21:10:11 -08:00
Erik Montnemery 09986436a1
Make idle chromecasts appear as idle instead of off (#61786) 2022-01-07 14:19:41 +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 bfafeb7965
Don't mock all of pychromecast in tests (#59839) 2021-11-18 11:28:35 +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 81d1899094
Bump pychromecast to 9.4.0 (#59716) 2021-11-15 14:50:40 +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 731bec3145
Improve test coverage (#59531) 2021-11-11 10:25:23 +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
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
Erik Montnemery 934d241b70
Improve Google Cast options flow (#50028) 2021-05-07 12:59:51 -07:00
Franck Nijhof c68b259bd3
Cleanup of unused connection_class logic (#49865)
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
2021-04-29 23:12:58 +02:00
Ville Skyttä 153d6e891e
Use config_entries.SOURCE_* constants (#49631) 2021-04-25 11:27:40 +02:00
jan iversen 6a4f414236
Change HomeAssistantType to HomeAssistant (#49522) 2021-04-21 15:53:06 -10:00
Erik Montnemery 1145856c45
Fix cast options flow overwriting data (#49051) 2021-04-11 13:53:44 -10:00
Erik Montnemery 2bf91fa359
Move cast config flow tests to test_config_flow (#48362) 2021-04-01 15:13:58 +02:00
Erik Montnemery 3188f796f9
Add allowed UUIDs and ignore CEC to Google Cast options flow (#47269) 2021-03-25 14:06:01 +01:00
Marc Mueller 54d1e9985f
Update typing 15 (#48079) 2021-03-18 15:13:22 +01:00
Erik Montnemery 87e7cebd36
Update tests c-h to use registry async_get (#47652) 2021-03-09 14:31:17 +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
Franck Nijhof 65cf2fcb6f
Drop asynctest (#44746) 2021-01-01 22:31:56 +01:00
Erik Montnemery 31b806ced1
Revert "Change http to auto for cast media image url" (#44327) 2020-12-17 17:43:52 +01:00
Erik Montnemery dfde403937
Remove Home Assistant Cast user when removing entry (#44228)
* Remove Home Assistant Cast user when removing entry

* Fix test

* Fix test
2020-12-16 11:00:22 +01:00
Erik Montnemery b626df1316
Improve cast integration tests (#42229)
* Improve cast tests

* Address review comments

* Further cleanup of tests
2020-10-23 16:16:55 +02:00
Erik Montnemery 3f263d5cbe
Remove deprecated host & platform configuration for cast (#41402) 2020-10-07 18:01:34 +02:00
J. Nick Koston 7b016063ca
Refactor zeroconf setup to be async (#39955)
* Refactor zeroconf setup to be async

Most of the setup was calling back to async because
we were setting up listeners.  Since we only need
to jump into the executor to create the zeroconf
instance, its much faster to setup in async.

In testing this cut the setup time in half
or better.

* partial revert to after_deps
2020-09-13 18:06:19 -05:00
Franck Nijhof 1c2ebdf307
Upgrade black to 20.8b1 (#39287) 2020-08-27 13:56:20 +02:00