Skip to content
Snippets Groups Projects
Commit 51eb6c7b authored by Sebastian Muszynski's avatar Sebastian Muszynski Committed by Paulus Schoutsen
Browse files

Bump PyXiaomiGateway version to 0.11.2 (#21453)

parent 2c103279
No related branches found
No related tags found
No related merge requests found
......@@ -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__)
......
......@@ -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()
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment