hass-core/tests
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
..
auth Cache decode of JWT tokens (#90013) 2023-03-22 16:03:41 -10:00
backports
components Improve logging for unavailable sonos hosts (#90172) 2023-03-23 16:15:55 +01:00
fixtures Unblock JSON CI by fixing improperly indented JSON in test fixture (#88803) 2023-02-26 14:41:16 -06:00
hassfest
helpers Try to load integration before starting option flow (#90111) 2023-03-22 20:10:10 +01:00
pylint
resources
scripts
test_util
testing_config Add an in-memory-preloading loader for Jinja imports (#88850) 2023-03-13 11:00:05 +01:00
util Add tmpdir to known fixtures in pylint (#89844) 2023-03-17 10:22:02 +01:00
__init__.py
bandit.yaml
common.py Add test helper mock_config_flow (#90103) 2023-03-22 08:59:35 -04:00
conftest.py Add schema auto repairs for states tables (#90083) 2023-03-22 10:05:23 -10:00
ignore_uncaught_exceptions.py
ruff.toml
syrupy.py
test_bootstrap.py Fix lingering timer in bootstrap tests (#89790) 2023-03-16 17:20:27 -04:00
test_config.py
test_config_entries.py Try to load integration before starting option flow (#90111) 2023-03-22 20:10:10 +01:00
test_core.py Add type hints to tests (#89497) 2023-03-10 12:06:50 +01:00
test_data_entry_flow.py
test_exceptions.py
test_loader.py
test_main.py
test_requirements.py
test_runner.py Add tmpdir to known fixtures in pylint (#89844) 2023-03-17 10:22:02 +01:00
test_setup.py
test_test_fixtures.py
typing.py