core/tests
rajlaud 3f427602ba
Squeezebox config flow (#35669)
* Squeezebox add config flow and player discovery

* Fixes to config flow

* Unavailable player detection and recovery

* Improved error message for auth failure

* Testing for squeezebox config flow

* Import configuration.yaml

* Support for discovery integration

* Internal server discovery

* Fix bug restoring previously detected squeezebox player

* Tests for user and edit steps in config flow

* Tests for import config flow

* Additional config flow tests and fixes

* Linter fixes

* Check that players are found before iterating them

* Remove noisy logger message

* Update requirements_all after rebase

* Use asyncio.Event in discovery task

* Use common keys in strings.json

* Bump pysqueezebox to v0.2.2 for fixed server discovery using python3.7

* Bump pysqueezebox version to v0.2.3

* Don't trap AbortFlow exception

Co-authored-by: J. Nick Koston <nick@koston.org>

* Refactor validate_input

* Update squeezebox tests

* Build data flow schema using function

* Fix linter error

* Updated en.json

* Update homeassistant/components/squeezebox/media_player.py

Co-authored-by: J. Nick Koston <nick@koston.org>

* Update homeassistant/components/squeezebox/media_player.py

Co-authored-by: J. Nick Koston <nick@koston.org>

* Update homeassistant/components/squeezebox/media_player.py

Co-authored-by: J. Nick Koston <nick@koston.org>

* Update homeassistant/components/squeezebox/media_player.py

Co-authored-by: J. Nick Koston <nick@koston.org>

* Update .coveragerc for squeezebox config flow test

* Mock TIMEOUT for faster testing

* More schema de-duplication and testing improvements

* Apply suggestions from code review

Co-authored-by: J. Nick Koston <nick@koston.org>

* Testing and config flow improvements

* Remove unused exceptions

* Remove deprecated logger message

* Update homeassistant/components/squeezebox/media_player.py

Co-authored-by: J. Nick Koston <nick@koston.org>

* Implement suggestions from code review

* Add async_unload_entry

* Use MockConfigEntry in squeezebox tests

* Remove unnecessary config schema

* Stop server discovery task when last config entry unloaded

* Improvements to async_unload_entry

* Fix bug in _discovery arguments

* Do not await server discovery in async_setup_entry

* Do not await start server discovery in async_setup

* Do not start server discovery from async_setup_entry until homeassistant running

* Re-detect players when server removed and re-added without restart

* Use entry.entry_id instead of unique_id

* Update unittests to avoid patching homeassistant code

Co-authored-by: J. Nick Koston <nick@koston.org>
2020-06-22 09:29:01 -05:00
..
auth Use asynctest-mock in most places (#35109) 2020-05-03 11:27:19 -07:00
components Squeezebox config flow (#35669) 2020-06-22 09:29:01 -05:00
fixtures Refactor / update Awair integration (#34394) 2020-06-21 21:46:07 +02:00
hassfest Make Hassfest stricter pt 2 (#30068) 2019-12-19 14:00:22 +01:00
helpers Add support for multiple states/zones in conditions (#36835) 2020-06-16 00:53:13 +02:00
mock Use asynctest-mock in most places (#35109) 2020-05-03 11:27:19 -07:00
resources
scripts Use asynctest-mock in most places (#35109) 2020-05-03 11:27:19 -07:00
test_util Fix docstring in test_utils/aiohttp.py (#34040) 2020-04-11 20:20:19 +02:00
testing_config Address new issues flagged by flake8 3.8.0a2 (#34964) 2020-04-30 21:37:58 +02:00
util Fix cloudhooks coming in for non existing webhooks (#36836) 2020-06-15 16:30:40 -07:00
__init__.py
async_mock.py Use built-in test helpers on 3.8 (#34901) 2020-04-30 13:29:50 -07:00
bandit.yaml Enable some more bandit checks (#30857) 2020-01-20 18:44:55 +02:00
common.py Improve after_dependencies handling (#36898) 2020-06-19 17:24:33 -07:00
conftest.py Fail tests if wrapped callbacks or coroutines throw (#35010) 2020-05-06 14:14:57 -07:00
ignore_uncaught_exceptions.py Fix broken CI (#35314) 2020-05-06 18:40:21 -07:00
test_bootstrap.py Improve after_dependencies handling (#36898) 2020-06-19 17:24:33 -07:00
test_config.py Fix packages when config schema is fully deprecated (#36674) 2020-06-11 10:59:52 -07:00
test_config_entries.py ConfigFlow default discovery without unique ID (#36754) 2020-06-15 13:38:38 +02:00
test_core.py Fire config changed event during start (#36812) 2020-06-15 15:22:53 -07:00
test_data_entry_flow.py Add current step that is in progress (#35272) 2020-05-05 21:34:51 -07:00
test_loader.py Improve after_dependencies handling (#36898) 2020-06-19 17:24:33 -07:00
test_main.py Use asynctest-mock in most places (#35109) 2020-05-03 11:27:19 -07:00
test_requirements.py Upgrade zeroconf to 0.27.1 (#36277) 2020-06-05 14:33:26 -07:00
test_setup.py Improve after_dependencies handling (#36898) 2020-06-19 17:24:33 -07:00