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>