epenet
c6e0e93680
Cleanup mock_get_source_ip from tests ( #118459 )
2024-05-30 09:37:01 +02:00
Pete Sage
1ad2e4951d
Fix Sonos album artwork performance ( #116391 )
2024-05-24 10:42:45 +02:00
Pete Sage
731fe17224
Fix Sonos select_source timeout error ( #115640 )
2024-05-07 10:08:12 +02:00
Erik Montnemery
db8597a742
Reduce scope of JSON/XML test fixtures ( #116197 )
2024-04-25 19:12:36 -05:00
Pete Sage
24a1f0712f
Fix Sonos music library play problems ( #113429 )
2024-04-24 14:03:40 +02:00
Pete Sage
553c147933
Fix sonos switch test failures ( #115052 )
2024-04-06 12:51:21 -10:00
J. Nick Koston
e0e54ab9d3
Migrate more sonos tasks to use eager_start ( #114697 )
2024-04-04 11:43:15 -10:00
J. Nick Koston
d63adb6350
Improve sonos test synchronization ( #114468 )
2024-03-30 06:34:47 -10:00
J. Nick Koston
9a79320861
Mark executor jobs as background unless created from a tracked task ( #114450 )
...
* Mark executor jobs as background unless created from a tracked task
If the current task is not tracked the executor job should not
be a background task to avoid delaying startup and shutdown.
Currently any executor job created in a untracked task or
background task would end up being tracked and delaying
startup/shutdown
* import exec has the same issue
* Avoid tracking import executor jobs
There is no reason to track these jobs as they are always awaited
and we do not want to support fire and forget import executor jobs
* fix xiaomi_miio
* lots of fire time changed without background await
* revert changes moved to other PR
* more
* more
* more
* m
* m
* p
* fix fire and forget tests
* scrape
* sonos
* system
* more
* capture callback before block
* coverage
* more
* more races
* more races
* more
* missed some
* more fixes
* missed some more
* fix
* remove unneeded
* one more race
* two
2024-03-30 00:16:53 -04:00
Joost Lekkerkerker
6bb4e7d62c
Bump ruff to 0.3.4 ( #112690 )
...
Co-authored-by: Sid <27780930+autinerd@users.noreply.github.com>
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-03-26 00:02:16 +01:00
J. Nick Koston
6ff8d7d2b9
Make sonos ssdp discovery callback a callback function ( #113107 )
2024-03-11 13:50:04 -10:00
Marc Mueller
7d6251ca08
Add empty line after module docstring [tests q-s] ( #112711 )
2024-03-08 14:47:22 +01:00
jjlawren
0ae4d017b9
Add subwoofer crossover support to Sonos Amp devices ( #106290 )
2023-12-23 10:25:20 +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
J. Nick Koston
0eca433004
Update zeroconf discovery to use IPAddress objects to avoid conversions ( #100567 )
2023-09-19 18:58:46 +02:00
Marc Mueller
23810752ed
Fix mock assert_called_with ( #96929 )
...
* Fix mock assert_called_with
* Fix sonos test
* Revert zeroconf test changes
2023-07-20 08:31:37 +02:00
PeteRager
6a8d18ab35
Sonos setup fails with unhandled exceptions on discovery messages ( #90648 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-05-30 10:09:13 -05:00
[pʲɵs]
6013584b7b
Add balance entity for Sonos speakers ( #85205 )
2023-04-23 01:18:17 +02:00
jjlawren
1b592e6885
Use subscription callbacks to discover Sonos speakers ( #85411 )
...
fixes undefined
2023-01-08 09:50:18 -10:00
Steven Looman
731f618028
Make home assistant discoverable via UPnP/SSDP ( #79820 )
2022-10-15 14:00:46 -04:00
jjlawren
07a46dee39
Additional surround controls for Sonos ( #73805 )
2022-06-22 09:08:31 +02:00
jjlawren
30e71dd96f
Add support for Sonos loudness switch ( #72572 )
2022-05-30 16:09:14 +02:00
jjlawren
1f1932d224
Fix Sonos races related to grouping and startup ( #71026 )
2022-04-28 14:26:29 -07:00
jjlawren
c53aa50093
Rework Sonos discovery & availability ( #70066 )
2022-04-17 22:54:51 -07:00
jjlawren
dbb79e2937
Add support for Sonos subwoofer gain controls ( #68334 )
2022-03-18 10:12:10 -07: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
jjlawren
76149876ab
Enable fallback polling for Sonos microphone binary_sensor ( #66299 )
2022-02-21 19:46:20 +01:00
Joshua Roys
9134e5c844
Get discovered zeroconf IPv6 addresses ( #65462 )
2022-02-11 16:46:17 -06:00
jjlawren
4d944e35fd
Skip polling Sonos audio input sensor when idle ( #66271 )
2022-02-10 12:48:13 -08:00
jjlawren
a7982adc73
Discard duplicate sonos events ( #64722 )
...
* Throttle duplicate Sonos events
* Fix test by breaking reference
2022-01-23 00:40:08 +01:00
jjlawren
e7f0962979
Improve Sonos diagnostics ( #64586 )
2022-01-20 13:14:08 -10:00
jjlawren
740a8c33ee
Add `audio_delay` number entity to Sonos ( #63566 )
2022-01-10 16:04:40 +01:00
jjlawren
8a8ffa1c08
Add support for Sonos microphone binary_sensor ( #63097 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-01-04 18:45:40 +01:00
jjlawren
00307e1ade
Bump soco to 0.25.2 ( #62691 )
2021-12-23 11:07:29 -08:00
jjlawren
9f3a4c3617
Improve Sonos tests, begin adding coverage ( #61198 )
...
* Update entity registry handling
* Add and use fixtures to test setup via config entry
* Remove legacy redundant tests
* Remove unnecessary mock_coro
* Remove unnecessary namespace change
* Move zeroconf payload to fixture
* Begin adding Sonos to codecov
* Mock proper return value
* Revert return value for platform
2021-12-08 19:28:27 +01:00
jjlawren
cbf2bf2e1f
Add audio input format sensor to Sonos HT devices ( #60884 )
2021-12-03 10:06:56 -08:00
jjlawren
b883014ed4
Add Sonos subwoofer and surround on/off controls ( #60918 )
2021-12-03 16:05:40 +01:00
J. Nick Koston
8e0ef52cc8
Ensure sonos ssdp callbacks use dataclass methods ( #60782 )
2021-12-02 09:53:08 -08:00
jjlawren
a88cc8b98c
Move Sonos bass & treble controls to number entities ( #60498 )
2021-11-29 16:00:37 +01:00
jjlawren
81e02a39df
Ignore non-Sonos SSDP devices with Sonos-like identifiers ( #59809 )
2021-11-19 10:14:12 -06:00
jjlawren
0d6aa89fd4
Refactor Sonos alarms and favorites updating ( #55529 )
2021-09-28 09:49:32 +02:00
Michael Chisholm
805e73f78c
Add UPNP device connection for Sonos ( #56702 )
2021-09-27 17:36:47 +02:00
Erik Montnemery
be0819b456
Mock out network.util.async_get_source_ip in tests ( #56339 )
2021-09-17 21:40:58 -10:00
Steven Looman
73260c5b88
Move parts of ssdp to async_upnp_client ( #55540 )
...
* Move parts of ssdp to async_upnp_client
* Fix test for environments with multiple sources
* Fix sonos tests
* More fixes/changes
* More fixes
* Use async_upnp_client==0.21.0
* Pylint/test fixes
* More changes after review
* Fix tests
* Improve testing
* Fix mypy
* Fix yamaha_musiccast tests?
* Changes after review
* Pylint
* Reduce calls to combined_headers
* Update to async_upnp_client==0.21.1
* Update to async_upnp_client==0.21.2
* use as_dict
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-09-11 13:38:16 -10:00
Anders Melchiorsen
e85b0ec052
Move Sonos to upstream SoCo ( #53351 )
2021-07-23 00:40:30 +02:00
jjlawren
e5309e89ea
Skip processed Sonos alarm updates ( #51217 )
...
* Skip processed Sonos alarm updates
* Fix bad conflict merge
2021-05-30 21:03:53 -07:00
J. Nick Koston
c5e5787e1d
Replace sonos discovery thread with ssdp callback registration ( #51033 )
...
Co-authored-by: jjlawren <jjlawren@users.noreply.github.com>
2021-05-29 08:31:22 -05:00
jjlawren
84f0d3f961
Centralize Sonos subscription logic ( #51172 )
...
* Centralize Sonos subscription logic
* Clean up mocked Sonos Service instances, use subscription callback
* Use existing mocked attributes
* Use event dispatcher dict, move methods together, make update_alarms sync
* Create dispatcher dict once
2021-05-28 21:32:50 -05:00
Aaron David Schneider
f7f8672eea
Add tests for sonos switch platform ( #51142 )
...
* add tests
* refactor async_added_to_hass
* fix tests and race condition
* use async_get
* typo
2021-05-27 19:56:59 +02:00
jjlawren
1e86818f85
Add battery support for Sonos S1 speakers ( #50864 )
2021-05-25 18:39:31 +02:00