Update wled to 0.16.0 (#90120)

This commit is contained in:
Franck Nijhof 2023-03-22 18:55:50 +01:00 committed by GitHub
parent 94e247dc69
commit 6db8867b81
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 8 additions and 7 deletions

View file

@ -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: