meross-homeassistant: Integraion stopped working with: mfaLockExpire error
Describe the bug I was able to control the garage MSG100s for years, and it recently stopped working. I deleted and re-added the integration but just receive the mfaLockExpire message.
Your environment HomeAssistant version: 2024.8.1 Hassio Version (if applicable): HAOS 13.0 Hardware environment: intel
Logs taken when the issue happened
Traceback (most recent call last):
File "/config/custom_components/meross_cloud/config_flow.py", line 283, in async_step_configure_manager
creds = await self._test_authorization(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/meross_cloud/config_flow.py", line 383, in _test_authorization
client = await MerossHttpClient.async_from_user_password(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/meross_iot/http_api.py", line 119, in async_from_user_password
creds = await cls.async_login(email=email,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/meross_iot/http_api.py", line 280, in async_login
mfa_lock_expire=response_data["mfaLockExpire"],
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
KeyError: 'mfaLockExpire'
v. 1.3.2 of integration
[custom_components.meross_cloud.config_flow] Unable to connect to Meross HTTP api, ex: ‘mfaLockExpire’
About this issue
- Original URL
- State: open
- Created 2 years ago
- Comments: 17 (4 by maintainers)
Commits related to this issue
- fix(#510): Bump merros_iot to v0.4.7.3 * Fixes the breaking login exception with mfaLockExpire (#510) — committed to xLexip/patchfork_meross-homeassistant by xLexip 2 years ago
- fix(#510): Remove mfa_lock_expire references * After merros_iot v0.4.7.3 upgrade, regarding #510 — committed to xLexip/patchfork_meross-homeassistant by xLexip 2 years ago
- Merge pull request #514 from xLexip/develop #510: Fix breaking login exception with mfaLockExpire — committed to albertogeniola/meross-homeassistant by albertogeniola 2 years ago
@Pito83 and whomever else sees this, i took a look at the patched issue on the other repo and was able to patch meross-homeassistant using the following steps.
manifest.json: update version for meros_iot
config_flow.py line 356: remove reference to mfa_lock_expire, since this is a configuration you can leave trailing comma
init.py line 391: remove reference to mfa_lock_expire, since this is a constructor you do need remove preceding comma.
This worked for me, glhf.
Can you please try latest v1.3.3 and report if it’s now working as expected?
Thanks @jasonwitty. I opened a merge request for this (#514). Lets hope @albertogeniola finds time to merge this. :]