mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Fix WiZ bulb being offline if kelvin limits cannot be obtained (#66305)
This commit is contained in:
parent
212c3b7c10
commit
768de8d515
@ -48,19 +48,8 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
|||||||
try:
|
try:
|
||||||
scenes = await bulb.getSupportedScenes()
|
scenes = await bulb.getSupportedScenes()
|
||||||
await bulb.getMac()
|
await bulb.getMac()
|
||||||
# ValueError gets thrown if the bulb type
|
except (WizLightNotKnownBulb, *WIZ_EXCEPTIONS) as err:
|
||||||
# cannot be determined on the first try.
|
raise ConfigEntryNotReady(f"{ip_address}: {err}") from err
|
||||||
# This is likely because way the library
|
|
||||||
# processes responses and can be cleaned up
|
|
||||||
# in the future.
|
|
||||||
except WizLightNotKnownBulb:
|
|
||||||
# This is only thrown on IndexError when the
|
|
||||||
# bulb responds with invalid data? It may
|
|
||||||
# not actually be possible anymore
|
|
||||||
_LOGGER.warning("The WiZ bulb type could not be determined for %s", ip_address)
|
|
||||||
return False
|
|
||||||
except (ValueError, *WIZ_EXCEPTIONS) as err:
|
|
||||||
raise ConfigEntryNotReady from err
|
|
||||||
|
|
||||||
async def _async_update() -> None:
|
async def _async_update() -> None:
|
||||||
"""Update the WiZ device."""
|
"""Update the WiZ device."""
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
],
|
],
|
||||||
"dependencies": ["network"],
|
"dependencies": ["network"],
|
||||||
"documentation": "https://www.home-assistant.io/integrations/wiz",
|
"documentation": "https://www.home-assistant.io/integrations/wiz",
|
||||||
"requirements": ["pywizlight==0.5.5"],
|
"requirements": ["pywizlight==0.5.6"],
|
||||||
"iot_class": "local_push",
|
"iot_class": "local_push",
|
||||||
"codeowners": ["@sbidy"]
|
"codeowners": ["@sbidy"]
|
||||||
}
|
}
|
||||||
|
@ -2057,7 +2057,7 @@ pywemo==0.7.0
|
|||||||
pywilight==0.0.70
|
pywilight==0.0.70
|
||||||
|
|
||||||
# homeassistant.components.wiz
|
# homeassistant.components.wiz
|
||||||
pywizlight==0.5.5
|
pywizlight==0.5.6
|
||||||
|
|
||||||
# homeassistant.components.xeoma
|
# homeassistant.components.xeoma
|
||||||
pyxeoma==1.4.1
|
pyxeoma==1.4.1
|
||||||
|
@ -1282,7 +1282,7 @@ pywemo==0.7.0
|
|||||||
pywilight==0.0.70
|
pywilight==0.0.70
|
||||||
|
|
||||||
# homeassistant.components.wiz
|
# homeassistant.components.wiz
|
||||||
pywizlight==0.5.5
|
pywizlight==0.5.6
|
||||||
|
|
||||||
# homeassistant.components.zerproc
|
# homeassistant.components.zerproc
|
||||||
pyzerproc==0.4.8
|
pyzerproc==0.4.8
|
||||||
|
Loading…
x
Reference in New Issue
Block a user