Add support to ignore a xiaomi aqara gateway (#14428)

This commit is contained in:
Kerwin Bryant 2018-05-20 04:36:47 +08:00 committed by Sebastian Muszynski
parent e88fc33eef
commit c316d5b0b9
2 changed files with 4 additions and 2 deletions

View File

@ -23,7 +23,7 @@ from homeassistant.helpers.event import async_track_point_in_utc_time
from homeassistant.util.dt import utcnow from homeassistant.util.dt import utcnow
from homeassistant.util import slugify from homeassistant.util import slugify
REQUIREMENTS = ['PyXiaomiGateway==0.9.3'] REQUIREMENTS = ['PyXiaomiGateway==0.9.4']
_LOGGER = logging.getLogger(__name__) _LOGGER = logging.getLogger(__name__)
@ -36,6 +36,7 @@ CONF_DISCOVERY_RETRY = 'discovery_retry'
CONF_GATEWAYS = 'gateways' CONF_GATEWAYS = 'gateways'
CONF_INTERFACE = 'interface' CONF_INTERFACE = 'interface'
CONF_KEY = 'key' CONF_KEY = 'key'
CONF_DISABLE = 'disable'
DOMAIN = 'xiaomi_aqara' DOMAIN = 'xiaomi_aqara'
@ -73,6 +74,7 @@ GATEWAY_CONFIG = vol.Schema({
vol.All(cv.string, vol.Length(min=16, max=16)), vol.All(cv.string, vol.Length(min=16, max=16)),
vol.Optional(CONF_HOST): cv.string, vol.Optional(CONF_HOST): cv.string,
vol.Optional(CONF_PORT, default=9898): cv.port, vol.Optional(CONF_PORT, default=9898): cv.port,
vol.Optional(CONF_DISABLE, default=False): cv.boolean,
}) })

View File

@ -46,7 +46,7 @@ PyMVGLive==1.1.4
PyMata==2.14 PyMata==2.14
# homeassistant.components.xiaomi_aqara # homeassistant.components.xiaomi_aqara
PyXiaomiGateway==0.9.3 PyXiaomiGateway==0.9.4
# homeassistant.components.rpi_gpio # homeassistant.components.rpi_gpio
# RPi.GPIO==0.6.1 # RPi.GPIO==0.6.1