Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 487, in async_update_ha_state await self.async_device_update() #49

Open
robertolamm opened this issue Dec 21, 2021 · 3 comments

Comments

@robertolamm
Copy link

Hello,
I have a lot of these errors in the log.

As mentioned in the issue #48, the status are not correct.... In addition the state is never in "unavailable", also when I remove the device from the electric socket.

Is only my problem ?

thx

Logger: homeassistant.helpers.entity
Source: custom_components/midea_dehumidifier/humidifier.py:401
Integration: EVA II PRO WiFi Midea Inventor Dehumidifier custom integration (documentation, issues)
First occurred: 15:44:34 (47 occurrences)
Last logged: 16:02:34

Update for humidifier.midea_dehumidifier_31885837251661 fails
Update for humidifier.midea_dehumidifier_31885837250678 fails
Update for humidifier.midea_dehumidifier_31885837243008 fails
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 487, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 691, in async_device_update
raise exc
File "/config/custom_components/midea_dehumidifier/humidifier.py", line 401, in async_update
res = await self.hass.async_add_executor_job(self._client.get_device_status, self._device['id'])
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.9/site-packages/midea_inventor_lib/midea_client.py", line 203, in get_device_status
decodedReplyStr = self.appliance_transparent_send(deviceId, dataStr)
File "/usr/local/lib/python3.9/site-packages/midea_inventor_lib/midea_client.py", line 553, in appliance_transparent_send
if not "reply" in result:
TypeError: argument of type 'NoneType' is not iterable

@fotis3d
Copy link

fotis3d commented Jan 14, 2022

I also get A LOT of errors on this intergration lately.

@CineMAC-HA
Copy link

the same here.

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 487, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 691, in async_device_update
raise exc
File "/config/custom_components/midea_dehumidifier/humidifier.py", line 401, in async_update
res = await self.hass.async_add_executor_job(self._client.get_device_status, self._device['id'])
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.9/site-packages/midea_inventor_lib/midea_client.py", line 203, in get_device_status
decodedReplyStr = self.appliance_transparent_send(deviceId, dataStr)
File "/usr/local/lib/python3.9/site-packages/midea_inventor_lib/midea_client.py", line 553, in appliance_transparent_send
if not "reply" in result:
TypeError: argument of type 'NoneType' is not iterable

@varac
Copy link

varac commented Feb 16, 2022

Same for me, whenever I power off the device I get this TypeError: argument of type 'NoneType' is not iterable error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants