Commit Graph

124 Commits (78c9b70c8d699bd1837f69b713536465b8aa6feb)

Author SHA1 Message Date
Franck Nijhof ca1a12898c
Enable Ruff D212 (#87347) 2023-02-03 23:08:48 +01:00
Franck Nijhof 79b52a2b41
Stricter pylint message control (#86154) 2023-01-20 13:47:55 +01:00
Franck Nijhof b0cee0bc46
String formatting and max line length - Part 1 (#84390)
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2022-12-22 10:12:50 +01:00
Michaël Arnauts 627a208d9f
Use a global const for CONF_UUID (#84093) 2022-12-19 12:16:30 +01:00
epenet 18e30e7c06
Adjust type hints for MediaPlayerEntityFeature (#82258) 2022-11-17 13:58:34 +01:00
epenet 7ff23506fe
Use new enums in cast (#77946)
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
2022-09-09 08:57:14 +02:00
epenet ed60611b07
Improve type hint in cast media_player entity (#77025)
* Improve type hint in cast media_player entity

* Update docstring
2022-08-22 09:13:14 +02:00
Franck Nijhof c81d63e070
Migrate Cast to new entity naming style (#74901) 2022-07-10 13:13:09 -07:00
Erik Montnemery 996544da2d
Poll cast groups when media player is added or reconnected (#74610) 2022-07-07 14:51:16 +02:00
Felipe Santos 4aa8570107
Set Google Cast audio devices as speakers (#73832) 2022-06-28 23:26:25 +02:00
Erik Montnemery 47d0cc9b09
Update integrations to pass target player when resolving media (#72597) 2022-05-27 09:05:06 -07: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 c7c011d772
Add load_media_failed callback to cast MediaStatusListener (#70048) 2022-04-26 13:37:17 -07: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
epenet 6343752f98
Use EntityFeature enum in components (c**) (#69341) 2022-04-05 23:49:20 +02: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
Paulus Schoutsen 4c5d64762b
Fix cast turn on image (#66500) 2022-02-14 14:38:46 +01:00
Paulus Schoutsen e90143e5c9
Sort media sources (#66237)
* Sort media sources

* Flatten media sources and sort Cast children

* Only expand if possible
2022-02-10 09:03:29 +01:00
Paulus Schoutsen 3bce870c6d
Add helper for media players to handle HA hosted media (#66120)
* Sonos to sign all HASS urls

* Don't sign if queries in url

* Extract media player hass URL handling to helper
2022-02-09 12:50:33 -08: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
Erik Montnemery ab17f8984b
Improve CastProtocol (#65357)
* Improve CastProtocol

* Tweak
2022-02-01 10:47:12 +01: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
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