core/tests/components/sonos
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
..
__init__.py
conftest.py Add battery support for Sonos speakers (#49441) 2021-04-25 07:20:21 -10:00
test_init.py
test_media_player.py Add battery support for Sonos speakers (#49441) 2021-04-25 07:20:21 -10:00
test_plex_playback.py Separate Plex/Sonos cross-integration tests (#45370) 2021-01-21 11:22:19 +01:00
test_sensor.py Add power binary_sensor support to Sonos (#49730) 2021-04-27 04:52:05 -10:00