Set yeelight capabilities from external discovery (#55280)
This commit is contained in:
parent
cbd65efe52
commit
5393a16c44
4 changed files with 5 additions and 3 deletions
|
@ -683,6 +683,8 @@ class YeelightDevice:
|
|||
"""Fetch capabilities and setup name if available."""
|
||||
scanner = YeelightScanner.async_get(self._hass)
|
||||
self.capabilities = await scanner.async_get_capabilities(self._host) or {}
|
||||
if self.capabilities:
|
||||
self._bulb_device.set_capabilities(self.capabilities)
|
||||
if name := self._config.get(CONF_NAME):
|
||||
# Override default name when name is set in config
|
||||
self._name = name
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"domain": "yeelight",
|
||||
"name": "Yeelight",
|
||||
"documentation": "https://www.home-assistant.io/integrations/yeelight",
|
||||
"requirements": ["yeelight==0.7.3", "async-upnp-client==0.20.0"],
|
||||
"requirements": ["yeelight==0.7.4", "async-upnp-client==0.20.0"],
|
||||
"codeowners": ["@rytilahti", "@zewelor", "@shenxn", "@starkillerOG"],
|
||||
"config_flow": true,
|
||||
"dependencies": ["network"],
|
||||
|
|
|
@ -2438,7 +2438,7 @@ yalesmartalarmclient==0.3.4
|
|||
yalexs==1.1.13
|
||||
|
||||
# homeassistant.components.yeelight
|
||||
yeelight==0.7.3
|
||||
yeelight==0.7.4
|
||||
|
||||
# homeassistant.components.yeelightsunflower
|
||||
yeelightsunflower==0.0.10
|
||||
|
|
|
@ -1367,7 +1367,7 @@ yalesmartalarmclient==0.3.4
|
|||
yalexs==1.1.13
|
||||
|
||||
# homeassistant.components.yeelight
|
||||
yeelight==0.7.3
|
||||
yeelight==0.7.4
|
||||
|
||||
# homeassistant.components.youless
|
||||
youless-api==0.12
|
||||
|
|
Loading…
Add table
Reference in a new issue