Xiaomi lib upgrade (#11603)

* upgrade xiaomi lib

* xiaomi lib
pull/11609/head
Daniel Høyer Iversen 2018-01-12 22:35:32 +01:00 committed by Paulus Schoutsen
parent 0409192e64
commit be31a860d1
2 changed files with 4 additions and 4 deletions

View File

@ -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))

View File

@ -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