core/tests
starkillerOG e34aed743c
Xiaomi Miio appropriatly raise ConfigEntryAuthFailed/ConfigEntryNotReady (#54696)
* Add reties to cloud login

* push to version 0.4 of micloud

* distinguish between authentication error and socket errors

* raise from error

* Update homeassistant/components/xiaomi_miio/gateway.py

Co-authored-by: Franck Nijhof <git@frenck.dev>

* move ConfigEntryNotReady to connect function

* remove unused import

* also add ConfigEntryNotReady for device

* catch exceptions in config flow

* fixes

* bring tests back to 100%

* add missing catch exception

* add test

* fix black

* Update homeassistant/components/xiaomi_miio/device.py

Co-authored-by: Teemu R. <tpr@iki.fi>

* Update homeassistant/components/xiaomi_miio/gateway.py

Co-authored-by: Teemu R. <tpr@iki.fi>

* Update tests/components/xiaomi_miio/test_config_flow.py

Co-authored-by: Teemu R. <tpr@iki.fi>

* fix tests

* define specific exceptions

* fix styling

* fix tests

* use proper DeviceException

* Revert "use proper DeviceException"

This reverts commit 0bd16135387cd6d9e563cd62ac147d0a25c577f3.

* use appropriate side-effect

* remove unused returns

* Update homeassistant/components/xiaomi_miio/const.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* remove unused returns

Co-authored-by: Franck Nijhof <git@frenck.dev>
Co-authored-by: Teemu R. <tpr@iki.fi>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-10-15 01:25:44 +02:00
..
auth Guard linking credential that is already linked (#57595) 2021-10-13 17:36:31 +02:00
components Xiaomi Miio appropriatly raise ConfigEntryAuthFailed/ConfigEntryNotReady (#54696) 2021-10-15 01:25:44 +02:00
fixtures Add config flow for efergy (#56890) 2021-10-11 10:07:31 +02:00
hassfest Validate requirements format in hassfest (#55094) 2021-08-24 08:51:07 +02:00
helpers Add support for device configuration URL (#57539) 2021-10-14 11:16:56 -07:00
mock
resources
scripts Allow IntegrationNotFound when checking config in safe mode (#56283) 2021-09-17 22:25:50 -07:00
test_util Use HTTPStatus instead of HTTP_* constants in various test mocks (#56543) 2021-10-01 15:52:45 -07:00
testing_config Add support for white to light groups (#55082) 2021-08-23 18:29:44 +02:00
util Add kPa as a pressure unit (#56885) 2021-10-01 08:08:04 -07:00
__init__.py
bandit.yaml
common.py Index config entries by domain (#56316) 2021-09-17 10:39:00 -10:00
conftest.py Block tests from opening sockets (#55516) 2021-10-05 14:46:09 -10:00
ignore_uncaught_exceptions.py
test_bootstrap.py Report integrations that block startup wrap up (#56003) 2021-09-09 20:39:22 -07:00
test_config.py Ensure internal/external URL have no path (#54304) 2021-08-09 09:38:09 +02:00
test_config_entries.py Refactor persistent notification to no longer route all data via a service (#57157) 2021-10-07 12:58:00 +02:00
test_core.py Fix external internal url core check (#54310) 2021-08-09 10:52:14 +02:00
test_data_entry_flow.py Prevent event loop delay / instability from discovery (#57463) 2021-10-13 08:37:14 -07:00
test_exceptions.py
test_loader.py Refactor persistent notification to no longer route all data via a service (#57157) 2021-10-07 12:58:00 +02:00
test_main.py
test_requirements.py Avoid checking if a package is installed if it already failed (#56698) 2021-09-26 22:32:25 -07:00
test_runner.py Avoid deadlock on shutdown when a task is shielded from cancelation (#56499) 2021-09-21 14:35:14 -07:00
test_setup.py
test_test_fixtures.py Block tests from opening sockets (#55516) 2021-10-05 14:46:09 -10:00