Commit graph

175 commits

Author SHA1 Message Date
Pete Sage
731fe17224
Fix Sonos select_source timeout error (#115640) 2024-05-07 10:08:12 +02:00
Pete Sage
24a1f0712f
Fix Sonos music library play problems (#113429) 2024-04-24 14:03:40 +02:00
Pete Sage
f26a7843c6
Fix Sonos play imported playlists (#113934) 2024-04-03 00:10:15 +02:00
Marc Mueller
930a396712
Add empty line after module docstring [s] (#112704) 2024-03-08 14:33:51 +01:00
Erik Montnemery
fb280229c2
Revert "Set volume_step in sonos media_player" (#106581)
Revert "Set volume_step in sonos media_player (#105671)"

This reverts commit 6dc8c2c370.
2023-12-28 19:48:34 +01:00
Erik Montnemery
6dc8c2c370
Set volume_step in sonos media_player (#105671) 2023-12-13 19:40:51 +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
Marco4223
a187164bf8
Get all playlist items from sonos devices (#100924) 2023-10-20 15:18:10 +02:00
Erik Montnemery
87f284c7e9
Add MEDIA_ANNOUNCE to MediaPlayerEntityFeature (#95906) 2023-07-10 12:58:53 +02:00
Erik Montnemery
6dae3553f2
Add MEDIA_ENQUEUE to MediaPlayerEntityFeature (#95905) 2023-07-08 10:55:25 +02:00
Paulus Schoutsen
9cace8e4bd
Fix some entity naming (#95562) 2023-06-29 13:11:17 -04:00
jjlawren
4ce1106243
Properly resolve media_source URLs for Sonos announcements (#92154)
Properly resolve media_source URLs for Sonos announcements
2023-04-27 23:51:51 -04:00
jjlawren
27f3b53872
Support Sonos announcements using websockets (#91145) 2023-04-13 20:08:53 -10:00
epenet
3b83340f6e
Improve get_browse_image type hints in media player (#90057) 2023-03-26 19:54:01 +02:00
epenet
f56bf134d2
Improve browse_media type hints in media player (#90060)
* Improve browse_media type hints in media player

* Adjust components

* Adjust base entity
2023-03-24 21:49:12 -07:00
epenet
4836404288
Improve media_player type hints in integrations (#90029)
Fix some media_player type hints
2023-03-21 11:10:12 +01:00
Franck Nijhof
3d557b5583
Collection of code styling tweaks (#87381) 2023-02-04 12:52:26 -05:00
Franck Nijhof
ca1a12898c
Enable Ruff D212 (#87347) 2023-02-03 23:08:48 +01:00
Michel van de Wetering
b087c1e734
Set deviceclass to speaker for Sonos media_player (#80694) 2023-01-16 20:20:37 +01:00
jjlawren
c70388869b
Do not discard zero positions for Sonos media players (#83249)
fixes undefined
2022-12-04 21:11:30 -05:00
jjlawren
d50f5e49c8
Extend Sonos queue operation timeouts (#80804) 2022-10-25 13:38:28 +02:00
epenet
7871a517a8
Import constants from root (#78271) 2022-09-12 18:53:05 +02:00
epenet
6b157921ea
Use new media player enums [s] (#78064) 2022-09-08 23:05:10 +02:00
epenet
3ec231c911
Improve entity type hints [s] (part 2/2) (#77882) 2022-09-06 13:36:44 +02:00
Robert Hillis
73ba7a989b
Make Sonos typing more complete (#68072) 2022-09-05 13:12:37 -05:00
Franck Nijhof
5f728b955e
Migrate Sonos to new entity naming style (#74909) 2022-07-10 13:19:13 -07:00
jjlawren
ba7ad1029c
Remove legacy Sonos grouping services (#74476) 2022-07-07 12:17:13 +02:00
jjlawren
d203cb0658
Minimize Sonos media_player.unjoin timeout (#74549) 2022-07-07 09:43:10 +02:00
jjlawren
329ecc74c4
Optimize Sonos join behavior when using media_player.join (#74174)
Optimize Sonos media_player.join service
2022-06-29 15:23:22 +02:00
jjlawren
4bfdb1433e
Optimize Sonos unjoin behavior when using media_player.unjoin (#74086)
* Coalesce Sonos unjoins to process together

* Refactor for readability

* Skip unjoin call if already ungrouped

* Store unjoin data in a dedicated dataclass

* Revert import adjustment
2022-06-28 13:19:27 -07:00
jjlawren
b0f4b3030f
Extend timeouts for Spotify and Plex playback on Sonos (#73803) 2022-06-23 00:58:10 +02:00
jjlawren
4f75de2345
Fix errors when unjoining multiple Sonos devices simultaneously (#73133) 2022-06-06 15:18:07 -07:00
jjlawren
d368b9e24f
Remove announce workaround for Sonos (#72854) 2022-06-01 22:12:38 -07:00
jjlawren
1ef59d1e73
Cleanup handling of new enqueue & announce features in Sonos (#72801) 2022-05-31 21:39:07 -07:00
jjlawren
275ea5b150
Support add/next/play/replace enqueue options in Sonos (#72800) 2022-05-31 20:36:45 -07:00
Erik Montnemery
47d0cc9b09
Update integrations to pass target player when resolving media (#72597) 2022-05-27 09:05:06 -07:00
Paulus Schoutsen
86570fba19
Convert media player enqueue to an enum (#72406) 2022-05-26 13:57:00 -07:00
jjlawren
bbe807c655
Deprecate legacy Sonos grouping services (#71226) 2022-05-02 23:01:44 -07:00
jjlawren
1f1932d224
Fix Sonos races related to grouping and startup (#71026) 2022-04-28 14:26:29 -07:00
jjlawren
6151306e3d
Use standard attribute for Sonos group members (#70924) 2022-04-27 18:59:05 +02:00
epenet
190ef4ee35
Use EntityFeature enum in components (s** 2/2) (#69441) 2022-04-07 15:06:34 +02:00
jjlawren
653305b998
Support multiple Plex servers in media browser (#68321) 2022-03-21 15:48:44 -07:00
jjlawren
f75d621888
Normalize enqueuing Plex media on Sonos (#68132) 2022-03-17 13:52:59 -07:00
jjlawren
80ff497cfc
Rework available Sonos sources (#67931) 2022-03-11 15:57:57 -08:00
jjlawren
cfd763db40
Refactor Sonos media metadata handling (#66840)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2022-02-23 08:58:00 -08:00
Paulus Schoutsen
e0ff7dc2e7
Fix radio browser on Sonos (#67017) 2022-02-22 08:51:41 +01:00
Erik Montnemery
5be5a014f3
Adjust Sonos for updated Spotify media browsing (#66508) 2022-02-14 20:15:09 +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
jjlawren
a7fd477c64
Refactor Sonos polling (#65722)
* Refactor Sonos polling

Explicitly rename fallback polling
Catch soco exceptions centrally where possible
Create SonosPollingEntity subclass
Remove unnecessary soco_error fixture argument
Remove unnecessary polling in update_volume()
Adjust log levels and wording
Set explicit timeout on library

* Adjust logging to use raised exceptions

* Simplify availabiliity checks when using built-in poller

* Fix typing for return values
2022-02-08 12:17:05 -06:00
jjlawren
b02a030336
Fix Spotify, Tidal, Apple Music playback on Sonos groups (#65838) 2022-02-06 18:37:23 +01:00