diff --git a/homeassistant/components/xiaomi_aqara.py b/homeassistant/components/xiaomi_aqara.py index 678ead981c1..e059d3d8772 100644 --- a/homeassistant/components/xiaomi_aqara.py +++ b/homeassistant/components/xiaomi_aqara.py @@ -9,7 +9,7 @@ from homeassistant.components.discovery import SERVICE_XIAOMI_GW from homeassistant.const import (ATTR_BATTERY_LEVEL, EVENT_HOMEASSISTANT_STOP, CONF_MAC, CONF_HOST, CONF_PORT) -REQUIREMENTS = ['PyXiaomiGateway==0.6.0'] +REQUIREMENTS = ['PyXiaomiGateway==0.7.0'] ATTR_GW_MAC = 'gw_mac' ATTR_RINGTONE_ID = 'ringtone_id' @@ -105,8 +105,8 @@ def setup(hass, config): discovery.listen(hass, SERVICE_XIAOMI_GW, xiaomi_gw_discovered) - from PyXiaomiGateway import PyXiaomiGateway - xiaomi = hass.data[PY_XIAOMI_GATEWAY] = PyXiaomiGateway( + from xiaomi_gateway import XiaomiGatewayDiscovery + xiaomi = hass.data[PY_XIAOMI_GATEWAY] = XiaomiGatewayDiscovery( hass.add_job, gateways, interface) _LOGGER.debug("Expecting %s gateways", len(gateways)) diff --git a/requirements_all.txt b/requirements_all.txt index b17c22a5f4f..d06c1b4a539 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -35,7 +35,7 @@ PyMVGLive==1.1.4 PyMata==2.14 # homeassistant.components.xiaomi_aqara -PyXiaomiGateway==0.6.0 +PyXiaomiGateway==0.7.0 # homeassistant.components.rpi_gpio # RPi.GPIO==0.6.1