Bump PyXiaomiGateway version to 0.11.2 (#21453)

This commit is contained in:
Sebastian Muszynski 2019-02-26 21:37:21 +01:00 committed by Paulus Schoutsen
parent dc6fd780a9
commit e119deafe5
3 changed files with 4 additions and 2 deletions

View file

@ -16,7 +16,7 @@ from homeassistant.helpers.entity import Entity
from homeassistant.helpers.event import async_track_point_in_utc_time
from homeassistant.util.dt import utcnow
REQUIREMENTS = ['PyXiaomiGateway==0.11.1']
REQUIREMENTS = ['PyXiaomiGateway==0.11.2']
_LOGGER = logging.getLogger(__name__)

View file

@ -99,8 +99,10 @@ class XiaomiGatewayLight(XiaomiDevice, Light):
if self._write_to_hub(self._sid, **{self._data_key: rgbhex}):
self._state = True
self.schedule_update_ha_state()
def turn_off(self, **kwargs):
"""Turn the light off."""
if self._write_to_hub(self._sid, **{self._data_key: 0}):
self._state = False
self.schedule_update_ha_state()

View file

@ -63,7 +63,7 @@ PySwitchbot==0.5
PyTransportNSW==0.1.1
# homeassistant.components.xiaomi_aqara
PyXiaomiGateway==0.11.1
PyXiaomiGateway==0.11.2
# homeassistant.components.rpi_gpio
# RPi.GPIO==0.6.5