Add additional 86sw model identifier of the LAN protocol V2 (#14799)

This commit is contained in:
Sebastian Muszynski 2018-06-04 07:39:50 +02:00 committed by Daniel Høyer Iversen
parent aec425d1f6
commit 39843a73de
3 changed files with 4 additions and 4 deletions

View file

@ -43,10 +43,10 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
data_key = 'channel_0'
devices.append(XiaomiButton(device, 'Switch', data_key,
hass, gateway))
elif model in ['86sw1', 'sensor_86sw1.aq1']:
elif model in ['86sw1', 'sensor_86sw1', 'sensor_86sw1.aq1']:
devices.append(XiaomiButton(device, 'Wall Switch', 'channel_0',
hass, gateway))
elif model in ['86sw2', 'sensor_86sw2.aq1']:
elif model in ['86sw2', 'sensor_86sw2', 'sensor_86sw2.aq1']:
devices.append(XiaomiButton(device, 'Wall Switch (Left)',
'channel_0', hass, gateway))
devices.append(XiaomiButton(device, 'Wall Switch (Right)',

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 import slugify
REQUIREMENTS = ['PyXiaomiGateway==0.9.4']
REQUIREMENTS = ['PyXiaomiGateway==0.9.5']
_LOGGER = logging.getLogger(__name__)

View file

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