Bump Yeelight to v0.7.10 (#69147)

This commit is contained in:
Alex Yao 2022-04-04 07:47:44 +00:00 committed by GitHub
parent 23dd3ee953
commit 29e8b9f2ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 5 deletions

View file

@ -219,6 +219,7 @@ class YeelightDevice:
@callback
def async_update_callback(self, data):
"""Update push from device."""
_LOGGER.debug("Received callback: %s", data)
was_available = self._available
self._available = data.get(KEY_CONNECTED, True)
if update_needs_bg_power_workaround(data) or (

View file

@ -245,7 +245,7 @@ def _parse_custom_effects(effects_config):
def _async_cmd(func):
"""Define a wrapper to catch exceptions from the bulb."""
async def _async_wrap(self, *args, **kwargs):
async def _async_wrap(self: "YeelightGenericLight", *args, **kwargs):
for attempts in range(2):
try:
_LOGGER.debug("Calling %s with %s %s", func, args, kwargs)
@ -708,7 +708,7 @@ class YeelightGenericLight(YeelightEntity, LightEntity):
"""Activate flash."""
if not flash:
return
if int(self._bulb.last_properties["color_mode"]) != 1:
if int(self._get_property("color_mode")) != 1:
_LOGGER.error("Flash supported currently only in RGB mode")
return

View file

@ -2,7 +2,7 @@
"domain": "yeelight",
"name": "Yeelight",
"documentation": "https://www.home-assistant.io/integrations/yeelight",
"requirements": ["yeelight==0.7.9", "async-upnp-client==0.27.0"],
"requirements": ["yeelight==0.7.10", "async-upnp-client==0.27.0"],
"codeowners": ["@zewelor", "@shenxn", "@starkillerOG", "@alexyao2015"],
"config_flow": true,
"dependencies": ["network"],

View file

@ -2455,7 +2455,7 @@ yalesmartalarmclient==0.3.8
yalexs==1.1.23
# homeassistant.components.yeelight
yeelight==0.7.9
yeelight==0.7.10
# homeassistant.components.yeelightsunflower
yeelightsunflower==0.0.10

View file

@ -1595,7 +1595,7 @@ yalesmartalarmclient==0.3.8
yalexs==1.1.23
# homeassistant.components.yeelight
yeelight==0.7.9
yeelight==0.7.10
# homeassistant.components.youless
youless-api==0.16