hass-core/tests/components/sonos
PeteRager 73ed6e039a
Improve logging for unavailable sonos hosts (#90172)
* Repeated warning messages on unavailable manually specified hosts

Sonos logs warning messages every 1 minute 12 seconds for hosts that are not on-line.  This fixes the issue and the warning will be logged the first time, and subsequent logs messages will be at DEBUG level

* Update homeassistant/components/sonos/__init__.py

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>

* Log info message when reconnect succeeds

* Use pop to simplify code

* Add additional test, fix key error with pop

* Use pop with default return value

* Update tests/components/sonos/test_init.py

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>

* Update tests/components/sonos/test_init.py

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>

* Update tests/components/sonos/test_init.py

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>

* Update tests/components/sonos/test_init.py

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>

* Update tests/components/sonos/test_init.py

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>

* Update comment, remove unneeded line of code

---------

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2023-03-23 16:15:55 +01:00
..
fixtures
__init__.py
conftest.py
test_config_flow.py
test_helpers.py
test_init.py Improve logging for unavailable sonos hosts (#90172) 2023-03-23 16:15:55 +01:00
test_media_player.py
test_number.py Adjust entity registry access in tests (3) (#88964) 2023-03-01 16:04:40 +01:00
test_plex_playback.py
test_sensor.py Adjust entity registry access in tests (3) (#88964) 2023-03-01 16:04:40 +01:00
test_services.py
test_speaker.py
test_statistics.py
test_switch.py Adjust entity registry access in tests (3) (#88964) 2023-03-01 16:04:40 +01:00