1
0
mirror of https://github.com/home-assistant/core.git synced 2026-06-01 13:14:35 +01:00
Commit Graph

71 Commits

Author SHA1 Message Date
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
Erik Montnemery 91ba8c0ef0 Warn when casting of tts fails (#38603)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2020-08-21 17:17:36 +02:00
Kendell R 0cdd47b014 Change http to auto for cast media image url (#38242)
* Change http to auto

* Update media_player.py

* Update test_media_player.py

* Update test_media_player.py

* Update test_media_player.py

* Update test_media_player.py

* Update test_media_player.py

* Update test_media_player.py

* Update test_media_player.py

* Update test_media_player.py

* Update test_media_player.py

* Format
2020-08-06 17:21:45 +02:00
Erik Montnemery e3dc8a1ff2 Bump pychromecast to 7.2.0 (#38351) 2020-07-29 23:46:14 +02:00
Joakim Plate bcd604eec2 Detect lingering threads after tests (#37270)
* Detect lingering threads after tests

* Make sure cast is setup before checking state

* Make sure we ask executors of old hass to shutdown

We are not waiting here, just hoping for the best

* Make sure all instances of hass and executors is stopped.

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

* Also apply hass stopping to scripts

* Adjust to changes how we set up executor

* Add new CoreState.stopped

Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2020-07-09 16:15:14 +02:00
Erik Montnemery 550f9ba9b0 Modify cast tests to setup via cast integration (#37256)
* Improve tests

* Improve tests

* Don't start zeroconf from tests
2020-07-08 12:11:34 -07:00
Erik Montnemery 86c27b50f1 Bump pychromecast to 7.0.1 (#37225)
* Bump pychromecast to 7.0.1

* Fix tests

* Mark configuration via platform for removal in 0.116

* Fix uuid check
2020-06-30 16:35:10 +02:00
Erik Montnemery f170c80bea Bump pychromecast to 6.0.0 (#36414)
* Revert "Prevent race in pychromecast.start_discovery (#36350)"

This reverts commit 391983a0cf.

* Adapt to pychromecast 6.0.0
2020-06-04 20:32:00 +02:00
Erik Montnemery 391983a0cf Prevent race in pychromecast.start_discovery (#36350)
* Workaround for race in pychromecast

* Fix tests
2020-06-01 23:25:06 +02:00
Franck Nijhof e56dd8ed50 Detect use of deprecated base_url (#35353)
* Detect use of deprecated base_url

* Update get_url helper

* Update core migration

* Migrate all tests
2020-05-08 17:52:32 +02:00
Franck Nijhof 2223592486 Add get_url helper, deprecate base_url (#35224) 2020-05-08 02:29:47 +02:00
Paulus Schoutsen 2af984917e Use asynctest-mock in most places (#35109)
* Use asynctest-mock in most places

* Fix broken patch in pilight
2020-05-03 11:27:19 -07:00
Paulus Schoutsen 76f392476b Use a future for mock coro (#34989) 2020-04-30 16:31:00 -07:00
Paulus Schoutsen ec47216388 Use built-in test helpers on 3.8 (#34901) 2020-04-30 13:29:50 -07:00
Paulus Schoutsen 0d700f6a63 Fix tests for Python 3.8 (#34672) 2020-04-25 14:32:55 -07:00
Erik Montnemery 8e150ff1f5 Bump pychromecast (#34466)
* Bump pychromecast

* Fix tests
2020-04-21 07:57:39 +02:00
Erik Montnemery ec2c7ea932 Don't do http requests to determine Cast device details (#34082)
* Don't do http requests to determine cast device details

* Fix tests

* Update homeassistant/components/cast/media_player.py

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2020-04-12 15:02:28 -07:00
Erik Montnemery 6d3046cb42 Remove support for cast dynamic speaker groups (#33884) 2020-04-10 10:36:57 -07:00
Erik Montnemery a0b3a9e50b Discover manually added casts (#33922)
* Discover manually added casts
2020-04-10 17:19:44 +02:00