Xiaomi PowerStrip Python


I have a Xiaomi PowerStrip model qmi.powerstrip.v1. Before update python, works fine, but now log report this problem and powerstrip doesn’t works… I saw way to solve this problem is downgrade python but i think better solve this problem making correction on python files.

Thank You.

Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity.py”, line 204, in async_update_ha_state
yield from self.async_device_update()
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity.py”, line 325, in async_device_update
yield from self.async_update()
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/switch/xiaomi_miio.py”, line 370, in async_update
state = await self.hass.async_add_job(self._plug.status)
File “/usr/lib/python3.5/asyncio/futures.py”, line 380, in iter
yield self # This tells Task to wait for completion.
File “/usr/lib/python3.5/asyncio/tasks.py”, line 304, in _wakeup
File “/usr/lib/python3.5/asyncio/futures.py”, line 293, in result
raise self._exception
File “/usr/lib/python3.5/concurrent/futures/thread.py”, line 55, in run
result = self.fn(*self.args, **self.kwargs)
File “/srv/homeassistant/lib/python3.5/site-packages/miio/powerstrip.py”, line 107, in status
File “/srv/homeassistant/lib/python3.5/site-packages/miio/device.py”, line 264, in send
self.__id = m.data.value[“id”]
TypeError: ‘NoneType’ object is not subscriptable