From c316d5b0b93a51a49750d8df0503df6a34c70189 Mon Sep 17 00:00:00 2001 From: Kerwin Bryant Date: Sun, 20 May 2018 04:36:47 +0800 Subject: [PATCH] Add support to ignore a xiaomi aqara gateway (#14428) --- homeassistant/components/xiaomi_aqara.py | 4 +++- requirements_all.txt | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/xiaomi_aqara.py b/homeassistant/components/xiaomi_aqara.py index 2cbf977443c..27bd496a3f0 100644 --- a/homeassistant/components/xiaomi_aqara.py +++ b/homeassistant/components/xiaomi_aqara.py @@ -23,7 +23,7 @@ from homeassistant.helpers.event import async_track_point_in_utc_time from homeassistant.util.dt import utcnow from homeassistant.util import slugify -REQUIREMENTS = ['PyXiaomiGateway==0.9.3'] +REQUIREMENTS = ['PyXiaomiGateway==0.9.4'] _LOGGER = logging.getLogger(__name__) @@ -36,6 +36,7 @@ CONF_DISCOVERY_RETRY = 'discovery_retry' CONF_GATEWAYS = 'gateways' CONF_INTERFACE = 'interface' CONF_KEY = 'key' +CONF_DISABLE = 'disable' DOMAIN = 'xiaomi_aqara' @@ -73,6 +74,7 @@ GATEWAY_CONFIG = vol.Schema({ vol.All(cv.string, vol.Length(min=16, max=16)), vol.Optional(CONF_HOST): cv.string, vol.Optional(CONF_PORT, default=9898): cv.port, + vol.Optional(CONF_DISABLE, default=False): cv.boolean, }) diff --git a/requirements_all.txt b/requirements_all.txt index b22ba13dcb5..8b5fb8c48be 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -46,7 +46,7 @@ PyMVGLive==1.1.4 PyMata==2.14 # homeassistant.components.xiaomi_aqara -PyXiaomiGateway==0.9.3 +PyXiaomiGateway==0.9.4 # homeassistant.components.rpi_gpio # RPi.GPIO==0.6.1