Update wled to 0.16.0 (#90120)
This commit is contained in:
parent
94e247dc69
commit
6db8867b81
6 changed files with 8 additions and 7 deletions
|
@ -1,7 +1,7 @@
|
|||
"""DataUpdateCoordinator for WLED."""
|
||||
from __future__ import annotations
|
||||
|
||||
from wled import WLED, Device as WLEDDevice, WLEDConnectionClosed, WLEDError
|
||||
from wled import WLED, Device as WLEDDevice, WLEDConnectionClosedError, WLEDError
|
||||
|
||||
from homeassistant.config_entries import ConfigEntry
|
||||
from homeassistant.const import CONF_HOST, EVENT_HOMEASSISTANT_STOP
|
||||
|
@ -68,7 +68,7 @@ class WLEDDataUpdateCoordinator(DataUpdateCoordinator[WLEDDevice]):
|
|||
|
||||
try:
|
||||
await self.wled.listen(callback=self.async_set_updated_data)
|
||||
except WLEDConnectionClosed as err:
|
||||
except WLEDConnectionClosedError as err:
|
||||
self.last_update_success = False
|
||||
self.logger.info(err)
|
||||
except WLEDError as err:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue