mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 09:17:10 +00:00
Bump PyXiaomiGateway version to 0.11.2 (#21453)
This commit is contained in:
parent
2c10327945
commit
51eb6c7b4e
@ -16,7 +16,7 @@ from homeassistant.helpers.entity import Entity
|
|||||||
from homeassistant.helpers.event import async_track_point_in_utc_time
|
from homeassistant.helpers.event import async_track_point_in_utc_time
|
||||||
from homeassistant.util.dt import utcnow
|
from homeassistant.util.dt import utcnow
|
||||||
|
|
||||||
REQUIREMENTS = ['PyXiaomiGateway==0.11.1']
|
REQUIREMENTS = ['PyXiaomiGateway==0.11.2']
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
@ -99,8 +99,10 @@ class XiaomiGatewayLight(XiaomiDevice, Light):
|
|||||||
|
|
||||||
if self._write_to_hub(self._sid, **{self._data_key: rgbhex}):
|
if self._write_to_hub(self._sid, **{self._data_key: rgbhex}):
|
||||||
self._state = True
|
self._state = True
|
||||||
|
self.schedule_update_ha_state()
|
||||||
|
|
||||||
def turn_off(self, **kwargs):
|
def turn_off(self, **kwargs):
|
||||||
"""Turn the light off."""
|
"""Turn the light off."""
|
||||||
if self._write_to_hub(self._sid, **{self._data_key: 0}):
|
if self._write_to_hub(self._sid, **{self._data_key: 0}):
|
||||||
self._state = False
|
self._state = False
|
||||||
|
self.schedule_update_ha_state()
|
||||||
|
@ -63,7 +63,7 @@ PySwitchbot==0.5
|
|||||||
PyTransportNSW==0.1.1
|
PyTransportNSW==0.1.1
|
||||||
|
|
||||||
# homeassistant.components.xiaomi_aqara
|
# homeassistant.components.xiaomi_aqara
|
||||||
PyXiaomiGateway==0.11.1
|
PyXiaomiGateway==0.11.2
|
||||||
|
|
||||||
# homeassistant.components.rpi_gpio
|
# homeassistant.components.rpi_gpio
|
||||||
# RPi.GPIO==0.6.5
|
# RPi.GPIO==0.6.5
|
||||||
|
Loading…
x
Reference in New Issue
Block a user