core: Unexpected response for get_device_list on Xiaomi Miio gateway

The problem

error in integrating lumi.gateway3 in home assistant

What is version of Home Assistant Core has the issue?

2021.5.05

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Core

Integration causing the issue

Xiaomi Miio

Link to integration documentation on our website

No response

Example YAML snippet

when i try to integrate the lumi.gateway3 I always receive the error (see below)

Anything in the logs that might be useful for us?

Logger: homeassistant.config_entries
Source: components/xiaomi_miio/gateway.py:43
First occurred: 15:28:48 (1 occurrences)
Last logged: 15:28:48

Error setting up entry Xiaomi Gateway for xiaomi_miio
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.8/site-packages/homeassistant/config_entries.py", line 269, in async_setup
    result = await component.async_setup_entry(hass, self)  # type: ignore
  File "/srv/homeassistant/lib/python3.8/site-packages/homeassistant/components/xiaomi_miio/__init__.py", line 45, in async_setup_entry
    ] == CONF_GATEWAY and not await async_setup_gateway_entry(hass, entry):
  File "/srv/homeassistant/lib/python3.8/site-packages/homeassistant/components/xiaomi_miio/__init__.py", line 69, in async_setup_gateway_entry
    if not await gateway.async_connect_gateway(host, token):
  File "/srv/homeassistant/lib/python3.8/site-packages/homeassistant/components/xiaomi_miio/gateway.py", line 43, in async_connect_gateway
    await self._hass.async_add_executor_job(
  File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/homeassistant/lib/python3.8/site-packages/miio/gateway/gateway.py", line 172, in discover_devices
    model_info = self.match_zigbee_model(device["model"], device["did"])
TypeError: string indices must be integers

Additional information

No response

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 18 (8 by maintainers)

Most upvoted comments

I’m using the ZNDMWG03LM. I’l send you the output of the script soon