Bump Yeelight to v0.7.10 (#69147)
This commit is contained in:
parent
2ae390a342
commit
bc106cc430
5 changed files with 6 additions and 5 deletions
|
@ -219,6 +219,7 @@ class YeelightDevice:
|
||||||
@callback
|
@callback
|
||||||
def async_update_callback(self, data):
|
def async_update_callback(self, data):
|
||||||
"""Update push from device."""
|
"""Update push from device."""
|
||||||
|
_LOGGER.debug("Received callback: %s", data)
|
||||||
was_available = self._available
|
was_available = self._available
|
||||||
self._available = data.get(KEY_CONNECTED, True)
|
self._available = data.get(KEY_CONNECTED, True)
|
||||||
if update_needs_bg_power_workaround(data) or (
|
if update_needs_bg_power_workaround(data) or (
|
||||||
|
|
|
@ -245,7 +245,7 @@ def _parse_custom_effects(effects_config):
|
||||||
def _async_cmd(func):
|
def _async_cmd(func):
|
||||||
"""Define a wrapper to catch exceptions from the bulb."""
|
"""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):
|
for attempts in range(2):
|
||||||
try:
|
try:
|
||||||
_LOGGER.debug("Calling %s with %s %s", func, args, kwargs)
|
_LOGGER.debug("Calling %s with %s %s", func, args, kwargs)
|
||||||
|
@ -708,7 +708,7 @@ class YeelightGenericLight(YeelightEntity, LightEntity):
|
||||||
"""Activate flash."""
|
"""Activate flash."""
|
||||||
if not flash:
|
if not flash:
|
||||||
return
|
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")
|
_LOGGER.error("Flash supported currently only in RGB mode")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"domain": "yeelight",
|
"domain": "yeelight",
|
||||||
"name": "Yeelight",
|
"name": "Yeelight",
|
||||||
"documentation": "https://www.home-assistant.io/integrations/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"],
|
"codeowners": ["@zewelor", "@shenxn", "@starkillerOG", "@alexyao2015"],
|
||||||
"config_flow": true,
|
"config_flow": true,
|
||||||
"dependencies": ["network"],
|
"dependencies": ["network"],
|
||||||
|
|
|
@ -2452,7 +2452,7 @@ yalesmartalarmclient==0.3.8
|
||||||
yalexs==1.1.23
|
yalexs==1.1.23
|
||||||
|
|
||||||
# homeassistant.components.yeelight
|
# homeassistant.components.yeelight
|
||||||
yeelight==0.7.9
|
yeelight==0.7.10
|
||||||
|
|
||||||
# homeassistant.components.yeelightsunflower
|
# homeassistant.components.yeelightsunflower
|
||||||
yeelightsunflower==0.0.10
|
yeelightsunflower==0.0.10
|
||||||
|
|
|
@ -1592,7 +1592,7 @@ yalesmartalarmclient==0.3.8
|
||||||
yalexs==1.1.23
|
yalexs==1.1.23
|
||||||
|
|
||||||
# homeassistant.components.yeelight
|
# homeassistant.components.yeelight
|
||||||
yeelight==0.7.9
|
yeelight==0.7.10
|
||||||
|
|
||||||
# homeassistant.components.youless
|
# homeassistant.components.youless
|
||||||
youless-api==0.16
|
youless-api==0.16
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue