From 51eb6c7b4ec97e59e9dc9eea179b39a27b828554 Mon Sep 17 00:00:00 2001 From: Sebastian Muszynski <basti@linkt.de> Date: Tue, 26 Feb 2019 21:37:21 +0100 Subject: [PATCH] Bump PyXiaomiGateway version to 0.11.2 (#21453) --- homeassistant/components/xiaomi_aqara/__init__.py | 2 +- homeassistant/components/xiaomi_aqara/light.py | 2 ++ requirements_all.txt | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/xiaomi_aqara/__init__.py b/homeassistant/components/xiaomi_aqara/__init__.py index ce943fb2c93..5e47adc47f9 100644 --- a/homeassistant/components/xiaomi_aqara/__init__.py +++ b/homeassistant/components/xiaomi_aqara/__init__.py @@ -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__) diff --git a/homeassistant/components/xiaomi_aqara/light.py b/homeassistant/components/xiaomi_aqara/light.py index 8ad0f2522d2..30433ccea3d 100644 --- a/homeassistant/components/xiaomi_aqara/light.py +++ b/homeassistant/components/xiaomi_aqara/light.py @@ -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() diff --git a/requirements_all.txt b/requirements_all.txt index ac85efe3be7..629dca5cccf 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -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 -- GitLab