Update wled to 0.16.0 (#90120)
parent
94e247dc69
commit
6db8867b81
|
@ -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:
|
||||
|
|
|
@ -7,6 +7,6 @@
|
|||
"integration_type": "device",
|
||||
"iot_class": "local_push",
|
||||
"quality_scale": "platinum",
|
||||
"requirements": ["wled==0.15.0"],
|
||||
"requirements": ["wled==0.16.0"],
|
||||
"zeroconf": ["_wled._tcp.local."]
|
||||
}
|
||||
|
|
|
@ -2638,7 +2638,7 @@ wirelesstagpy==0.8.1
|
|||
withings-api==2.4.0
|
||||
|
||||
# homeassistant.components.wled
|
||||
wled==0.15.0
|
||||
wled==0.16.0
|
||||
|
||||
# homeassistant.components.wolflink
|
||||
wolf_smartset==0.1.11
|
||||
|
|
|
@ -1878,7 +1878,7 @@ wiffi==1.1.2
|
|||
withings-api==2.4.0
|
||||
|
||||
# homeassistant.components.wled
|
||||
wled==0.15.0
|
||||
wled==0.16.0
|
||||
|
||||
# homeassistant.components.wolflink
|
||||
wolf_smartset==0.1.11
|
||||
|
|
|
@ -92,6 +92,7 @@
|
|||
'effect_count': 81,
|
||||
'filesystem': None,
|
||||
'free_heap': 14600,
|
||||
'ip': 'Unknown',
|
||||
'leds': dict({
|
||||
'__type': "<class 'wled.models.Leds'>",
|
||||
'repr': 'Leds(cct=False, count=30, fps=None, light_capabilities=None, max_power=850, max_segments=10, power=470, rgbw=False, wv=True, segment_light_capabilities=None)',
|
||||
|
|
|
@ -7,7 +7,7 @@ from unittest.mock import MagicMock
|
|||
import pytest
|
||||
from wled import (
|
||||
Device as WLEDDevice,
|
||||
WLEDConnectionClosed,
|
||||
WLEDConnectionClosedError,
|
||||
WLEDConnectionError,
|
||||
WLEDError,
|
||||
)
|
||||
|
@ -124,7 +124,7 @@ async def test_websocket(
|
|||
assert state.state == STATE_OFF
|
||||
|
||||
# Resolve Future with a connection losed.
|
||||
connection_finished.set_exception(WLEDConnectionClosed)
|
||||
connection_finished.set_exception(WLEDConnectionClosedError)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
# Disconnect called, unsubbed Home Assistant stop listener
|
||||
|
|
Loading…
Reference in New Issue