Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Xiaomi Miio EU gateway support (home-assistant#47955)
* Add EU gateway support * add options flow translations * fix options flow * fix missing import * try to fix async_add_executor_job * try to fix async_add_executor_job * fix unload * check for login succes * fix not reloading * use cloud option * fix styling * Return after if Co-authored-by: Nathan Tilley <[email protected]> * cleanup * add options flow tests * fix new tests * fix typo in docstring * add missing blank line * Use async_on_unload Co-authored-by: Martin Hjelmare <[email protected]> * Use async_on_unload Co-authored-by: Martin Hjelmare <[email protected]> * Use async_setup_platforms Co-authored-by: Martin Hjelmare <[email protected]> * Use async_unload_platforms Co-authored-by: Martin Hjelmare <[email protected]> * Update homeassistant/components/xiaomi_miio/__init__.py Co-authored-by: Martin Hjelmare <[email protected]> * Update homeassistant/components/xiaomi_miio/const.py Co-authored-by: Martin Hjelmare <[email protected]> * default use_cloud False * add options flow checks * fix styling * fix issort * add MiCloud check tests * fix indent * fix styling * fix tests * fix tests * fix black * re-write config flow * add explicit return type * update strings.json * black formatting * fix config flow Tested the config flow and it is now fully working * fix styling * Fix current tests * Add missing tests * fix styling * add re-auth flow * fix styling * fix reauth flow * Add reauth flow test * use ConfigEntryAuthFailed * also trigger reauth @ login error * fix styling * remove unused import * fix spelling Co-authored-by: Martin Hjelmare <[email protected]> * Fix spelling Co-authored-by: Martin Hjelmare <[email protected]> * fix spelling Co-authored-by: Martin Hjelmare <[email protected]> * remove unessesary .keys() Co-authored-by: Martin Hjelmare <[email protected]> * combine async_add_executor_job calls * remove async_step_model * fix wrong indent * fix gatway.py * fix tests Co-authored-by: Nathan Tilley <[email protected]> Co-authored-by: Martin Hjelmare <[email protected]>
- Loading branch information