J. Nick Koston
016a4433d2
Handle missing transport_state on media update in sonos ( #50051 )
2021-05-04 08:54:31 +02:00
Franck Nijhof
2ed386f9e6
Migrate to async_get_current_platform everywhere ( #50034 )
2021-05-03 09:34:28 -07:00
jjlawren
adba82de8b
Do not pass hass.data to Sonos entities ( #49881 )
2021-04-30 07:01:09 +02:00
Ruslan Sayfutdinov
0301706fc6
Define AddEntitiesCallback type ( #49812 )
2021-04-29 12:28:14 +02:00
jjlawren
d4ed65e0f5
Add power binary_sensor support to Sonos ( #49730 )
...
* Add power binary_sensor support to Sonos
* Prepare for future unloading of config entries
* Remove unnecessary calls to super() inits
* Add binary_sensor to tests, remove invalid test for empty battery payload
* Move sensor added_to_hass to common sensor class
* Avoid dispatching sensors if no battery
* Use proper attributes property
* Remove power source fallback
* Update homeassistant/components/sonos/speaker.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-04-27 04:52:05 -10:00
jjlawren
3be8c9c1c0
Add battery support for Sonos speakers ( #49441 )
...
Co-authored-by: Walter Huf <hufman@gmail.com>
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-04-25 07:20:21 -10:00
J. Nick Koston
3fa8ffa731
Enable mccabe complexity checks in flake8 ( #49616 )
...
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-04-25 12:38:40 +02:00
Marc Mueller
c07646db5d
Update typing syntax ( #49480 )
...
* Update typing syntax
* Replace typing imports with ones from collections where possible
* Changes after review
2021-04-20 17:40:41 +02:00
J. Nick Koston
19e047e801
Fix logic reversal in sonos update_media_radio ( #48900 )
2021-04-09 07:24:35 +02:00
J. Nick Koston
6dc1414b69
Fix sonos volume always showing 0 ( #48685 )
2021-04-04 20:26:55 -07:00
J. Nick Koston
e008e80bcf
Cleanup sonos ( #48684 )
...
- Remove unused code
- Use async_add_executor_job
- Enforce typing
2021-04-04 23:28:29 +02:00
J. Nick Koston
bc06100dd8
Make sonos event asyncio ( #48618 )
2021-04-03 17:10:48 -07:00
Anders Melchiorsen
96c391af09
Fix Sonos Line-in favorites ( #48524 )
2021-03-31 07:22:54 +02:00
Franck Nijhof
6932cf9534
Use contextlib.suppress where possible ( #48189 )
2021-03-23 14:36:43 +01:00
J. Nick Koston
c820dd4cb5
Have pylint warn when user visible log messages do not start with capital letter or end with a period ( #48064 )
...
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-03-19 09:26:36 -05:00
Erik Montnemery
14ff6d4d1f
Update integrations p-s to override extra_state_attributes() ( #47759 )
2021-03-11 21:23:20 +01:00
Anders Melchiorsen
c7718f2b3b
Fix Sonos polling mode ( #47498 )
2021-03-06 10:21:00 +01:00
Tobias Sauerwein
39baeb62f2
Add Sonos media browser image proxy ( #46902 )
2021-02-24 20:51:12 +01:00
J. Nick Koston
41332493b5
Add suggested area support to Sonos ( #46794 )
2021-02-19 21:28:52 -10:00
Anders Melchiorsen
1fd3a86239
Upgrade pysonos to 0.0.40 ( #45743 )
2021-01-30 15:38:43 +01:00
jjlawren
411cc6542c
Move Plex->Sonos playback to built-in service ( #45066 )
...
* Move Plex->Sonos playback service from integration to platform
* Test against 'native' Plex media_players
* Add Plex to Sonos after_dependencies
* Remove circular dependency
* Raise exceptions in failed service calls
* Add test to forward service call from Sonos
* Additional Sonos->Plex tests
* Fix docstring
2021-01-13 15:24:44 +01:00
Anders Melchiorsen
47ff04d9ad
Optimize reading of Sonos source mode ( #43541 )
2020-11-23 10:20:06 +01:00
Anders Melchiorsen
9ffdec63cc
Optimize Sonos current playing state ( #43517 )
2020-11-22 22:16:03 +01:00
Anders Melchiorsen
62da64867c
Optimize Sonos favorites updates ( #43516 )
2020-11-22 14:04:46 +01:00
Anders Melchiorsen
7319c4692d
Optimize Sonos queue position ( #43514 )
2020-11-22 12:25:13 +01:00
Anders Melchiorsen
30b454ddb7
Fix Sonos shuffle/repeat state with Spotify Connect ( #41939 )
2020-10-17 09:40:43 +02:00
Anders Melchiorsen
b5308bda09
Add Sonos support for media_player.repeat_set service ( #41735 )
...
* Add Sonos support for media_player.repeat_set service
* Update homeassistant/components/sonos/media_player.py
* Remove else for pylint
Co-authored-by: cgtobi <cgtobi@users.noreply.github.com>
2020-10-13 00:30:38 +02:00
Anders Melchiorsen
a65dcbf204
Allow playing Spotify URLs with Sonos ( #41366 )
2020-10-07 00:15:09 +02:00
cgtobi
8236394b85
Check Sonos for local library before browsing ( #40085 )
2020-09-15 09:30:00 +02:00
Martin Hjelmare
e96fed20c8
Add children media class ( #39902 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2020-09-11 13:08:13 +02:00
Martin Hjelmare
586d7eaba6
Add media class browse media attribute ( #39770 )
2020-09-08 16:42:01 +02:00
cgtobi
973524a4e6
Fix Sonos issue ( #39790 )
2020-09-08 14:13:48 +02:00
cgtobi
21dbce1554
Make Sonos use BrowseMedia ( #39742 )
2020-09-07 11:24:31 +02:00
Paulus Schoutsen
df8daf561e
Browse media class ( #39698 )
2020-09-06 15:52:59 +02:00
Anders Melchiorsen
da82d171e0
Add radio channel attribute to Sonos ( #39631 )
2020-09-03 23:47:32 +02:00
cgtobi
603707aa85
Add Sonos media browser capability ( #39239 )
2020-09-02 10:57:12 +02:00
Franck Nijhof
1c2ebdf307
Upgrade black to 20.8b1 ( #39287 )
2020-08-27 13:56:20 +02:00
Ian
5b2bf8fd17
Add status_light to Sonos set_option service ( #35515 )
2020-06-08 23:41:12 +02:00
Giel Janssens
af4fb03230
Sonos queue ( #35817 )
...
* Add playbase as a model
* Sonos queue
* Match counting of the queue with service play_queue
* Add service remove_from_queue
* Change description of remove_from_queue
* Use ATTR_QUEUE_POSITION instead of ATTR_CURRENT_QUEUE_POSITION
* Removed queue and show queue_position only when playing local
* Add property queue_position
* Return None instead of -1
* Change docstring from -1 to None
2020-06-08 16:37:35 +02:00
jjlawren
4e74fae615
Playback on Sonos speakers from Plex integration ( #36177 )
...
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2020-05-27 15:36:08 -07:00
Anders Melchiorsen
796e6141ac
Handle Sonos changing IP address ( #35639 )
2020-05-17 20:20:10 -05:00
J. Nick Koston
03b14c9aae
Add sw_version and connections to sonos devices ( #35743 )
2020-05-17 16:16:50 -05:00
Franck Nijhof
4cf186a47e
Small collection of random styling tweaks, fixes and Pythonism ( #35390 )
2020-05-09 00:10:17 +02:00
Anders Melchiorsen
b3e637ca7a
Some Sonos fixes ( #35115 )
2020-05-04 11:22:47 -07:00
Erik Montnemery
62bc02fdda
Rename MediaPlayerDevice to MediaPlayerEntity ( #34592 )
2020-04-25 18:00:57 +02:00
Anders Melchiorsen
cd3fc7c76d
Fixes for Sonos media titles ( #34311 )
2020-04-16 15:16:18 -07:00
Franck Nijhof
7d3c974747
Use set & dict literals ( #33636 )
...
Co-authored-by: Daniel Høyer Iversen <mail@dahoiv.net>
2020-04-04 20:05:15 +02:00
Anders Melchiorsen
c628c2cef2
Identify more Sonos radio stations with poor titles ( #33609 )
2020-04-03 22:41:39 -07:00
Paulus Schoutsen
aaa1d06809
Directly call async_write_ha_state ( #33508 )
...
* Directly call async_write_ha_state
* Address comments
* Fix tests
2020-04-01 14:19:51 -07:00
Anders Melchiorsen
03a090e384
Fixes for Sonos media position ( #33379 )
2020-03-28 16:15:32 -07:00