Add Xiaomi Aqara Config Flow (#35595)
* Xiaomi Aqara Config Flow * Xiaomi Aqara Config Flow * Xiaomi Aqara Config Flow * Xiaomi Aqara Config Flow * Xiaomi Aqara Config Flow First tested and working version * Remove depricated discovery * Add Xiaomi Aqara Config Flow * Add Xiaomi Aqara tests * Update .coveragerc * Update requirements_test_all.txt * fix spelling mistake * fix select scheme * fix wrong conflict resolve * add IP to zeroconf discovery title * black styling * add getmac requirement Co-authored-by: Maciej Bieniek <bieniu@users.noreply.github.com> * add getmac * add getmac * Clean up * Update homeassistant/components/xiaomi_aqara/__init__.py Co-authored-by: Martin Hjelmare <marhje52@gmail.com> * Update homeassistant/components/xiaomi_aqara/__init__.py Co-authored-by: Martin Hjelmare <marhje52@gmail.com> * Update homeassistant/components/xiaomi_aqara/__init__.py Co-authored-by: Martin Hjelmare <marhje52@gmail.com> * Update homeassistant/components/xiaomi_aqara/__init__.py Co-authored-by: Martin Hjelmare <marhje52@gmail.com> * Update homeassistant/components/xiaomi_aqara/__init__.py Co-authored-by: Martin Hjelmare <marhje52@gmail.com> * resolve data storage * move format_mac down * Remove discovery_retry from config flow * remove unused strings * fix styling * fix black styling * fix tests * remove mac connection This is needed to prevent a conflict with the Xiaomi Miio integration that I discovered during testing. * fix flake8 * remove getmac depandance * check for inavlid_interface + test * Validate gateway key * add invalid key tests * Fix spelling * Only set up sensors if no key Co-authored-by: Maciej Bieniek <bieniu@users.noreply.github.com> Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
parent
6aba87f3a6
commit
1f9721bad3
19 changed files with 1128 additions and 341 deletions
|
@ -57,7 +57,6 @@ SERVICE_HANDLERS = {
|
|||
SERVICE_APPLE_TV: ("apple_tv", None),
|
||||
SERVICE_ENIGMA2: ("media_player", "enigma2"),
|
||||
SERVICE_WINK: ("wink", None),
|
||||
SERVICE_XIAOMI_GW: ("xiaomi_aqara", None),
|
||||
SERVICE_SABNZBD: ("sabnzbd", None),
|
||||
SERVICE_SAMSUNG_PRINTER: ("sensor", "syncthru"),
|
||||
SERVICE_KONNECTED: ("konnected", None),
|
||||
|
@ -92,6 +91,7 @@ MIGRATED_SERVICE_HANDLERS = [
|
|||
"sonos",
|
||||
"songpal",
|
||||
SERVICE_WEMO,
|
||||
SERVICE_XIAOMI_GW,
|
||||
]
|
||||
|
||||
DEFAULT_ENABLED = (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue