Fix python-miio 0.4 compatibility of the xiaomi miio device tracker (#15244)

This commit is contained in:
shker 2018-07-03 04:33:40 +08:00 committed by Sebastian Muszynski
parent 0feb4c5439
commit e6390b8e41

View file

@ -64,7 +64,7 @@ class XiaomiMiioDeviceScanner(DeviceScanner):
station_info = await self.hass.async_add_job(self.device.status)
_LOGGER.debug("Got new station info: %s", station_info)
for device in station_info['mat']:
for device in station_info.associated_stations:
devices.append(device['mac'])
except DeviceException as ex: