You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
Integration works well a short period after HA restart, but five or so minutes after, stops working complaining about account password
Steps to reproduce the behavior:
Install integration
Configure your midea account settings
Restart HA
Try it
Wait 5 to 10 minutes
Try again
Logs
2020-06-30 18:29:01 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.1541138480] (3101, 'password error,please enter again.')
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 130, in handle_call_service
connection.context(msg),
File "/usr/src/homeassistant/homeassistant/core.py", line 1260, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1295, in _execute_service
await handler.func(service_call)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 209, in handle_service
self._platforms.values(), func, call, required_features
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 454, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 597, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 485, in _handle_entity_call
await result
File "/config/custom_components/midea/climate.py", line 270, in async_set_hvac_mode
await self.apply_changes()
File "/config/custom_components/midea/climate.py", line 102, in apply_changes
await self.hass.async_add_executor_job(self._device.apply)
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.7/site-packages/midea/device.py", line 165, in apply
data = self._cloud_service.appliance_transparent_send(self.id, data)
File "/usr/local/lib/python3.7/site-packages/midea/cloud.py", line 162, in appliance_transparent_send
self.login()
File "/usr/local/lib/python3.7/site-packages/midea/cloud.py", line 118, in login
'password': self.security.encryptPassword(self.login_id, self.password)
File "/usr/local/lib/python3.7/site-packages/midea/cloud.py", line 83, in api_request
self.handle_api_error(int(response['errorCode']), response['msg'])
File "/usr/local/lib/python3.7/site-packages/midea/cloud.py", line 224, in handle_api_error
handler()
File "/usr/local/lib/python3.7/site-packages/midea/cloud.py", line 200, in restart_full
self.login()
File "/usr/local/lib/python3.7/site-packages/midea/cloud.py", line 118, in login
'password': self.security.encryptPassword(self.login_id, self.password)
File "/usr/local/lib/python3.7/site-packages/midea/cloud.py", line 83, in api_request
self.handle_api_error(int(response['errorCode']), response['msg'])
File "/usr/local/lib/python3.7/site-packages/midea/cloud.py", line 224, in handle_api_error
handler()
File "/usr/local/lib/python3.7/site-packages/midea/cloud.py", line 209, in throw
raise ValueError(error_code, message)
ValueError: (3101, 'password error,please enter again.')
Description
Integration works well a short period after HA restart, but five or so minutes after, stops working complaining about account password
Steps to reproduce the behavior:
Logs
Versions
The text was updated successfully, but these errors were encountered: