mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Update wled to 0.16.0 (#90120)
This commit is contained in:
parent
94e247dc69
commit
6db8867b81
@ -1,7 +1,7 @@
|
|||||||
"""DataUpdateCoordinator for WLED."""
|
"""DataUpdateCoordinator for WLED."""
|
||||||
from __future__ import annotations
|
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.config_entries import ConfigEntry
|
||||||
from homeassistant.const import CONF_HOST, EVENT_HOMEASSISTANT_STOP
|
from homeassistant.const import CONF_HOST, EVENT_HOMEASSISTANT_STOP
|
||||||
@ -68,7 +68,7 @@ class WLEDDataUpdateCoordinator(DataUpdateCoordinator[WLEDDevice]):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
await self.wled.listen(callback=self.async_set_updated_data)
|
await self.wled.listen(callback=self.async_set_updated_data)
|
||||||
except WLEDConnectionClosed as err:
|
except WLEDConnectionClosedError as err:
|
||||||
self.last_update_success = False
|
self.last_update_success = False
|
||||||
self.logger.info(err)
|
self.logger.info(err)
|
||||||
except WLEDError as err:
|
except WLEDError as err:
|
||||||
|
@ -7,6 +7,6 @@
|
|||||||
"integration_type": "device",
|
"integration_type": "device",
|
||||||
"iot_class": "local_push",
|
"iot_class": "local_push",
|
||||||
"quality_scale": "platinum",
|
"quality_scale": "platinum",
|
||||||
"requirements": ["wled==0.15.0"],
|
"requirements": ["wled==0.16.0"],
|
||||||
"zeroconf": ["_wled._tcp.local."]
|
"zeroconf": ["_wled._tcp.local."]
|
||||||
}
|
}
|
||||||
|
@ -2638,7 +2638,7 @@ wirelesstagpy==0.8.1
|
|||||||
withings-api==2.4.0
|
withings-api==2.4.0
|
||||||
|
|
||||||
# homeassistant.components.wled
|
# homeassistant.components.wled
|
||||||
wled==0.15.0
|
wled==0.16.0
|
||||||
|
|
||||||
# homeassistant.components.wolflink
|
# homeassistant.components.wolflink
|
||||||
wolf_smartset==0.1.11
|
wolf_smartset==0.1.11
|
||||||
|
@ -1878,7 +1878,7 @@ wiffi==1.1.2
|
|||||||
withings-api==2.4.0
|
withings-api==2.4.0
|
||||||
|
|
||||||
# homeassistant.components.wled
|
# homeassistant.components.wled
|
||||||
wled==0.15.0
|
wled==0.16.0
|
||||||
|
|
||||||
# homeassistant.components.wolflink
|
# homeassistant.components.wolflink
|
||||||
wolf_smartset==0.1.11
|
wolf_smartset==0.1.11
|
||||||
|
@ -92,6 +92,7 @@
|
|||||||
'effect_count': 81,
|
'effect_count': 81,
|
||||||
'filesystem': None,
|
'filesystem': None,
|
||||||
'free_heap': 14600,
|
'free_heap': 14600,
|
||||||
|
'ip': 'Unknown',
|
||||||
'leds': dict({
|
'leds': dict({
|
||||||
'__type': "<class 'wled.models.Leds'>",
|
'__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)',
|
'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
|
import pytest
|
||||||
from wled import (
|
from wled import (
|
||||||
Device as WLEDDevice,
|
Device as WLEDDevice,
|
||||||
WLEDConnectionClosed,
|
WLEDConnectionClosedError,
|
||||||
WLEDConnectionError,
|
WLEDConnectionError,
|
||||||
WLEDError,
|
WLEDError,
|
||||||
)
|
)
|
||||||
@ -124,7 +124,7 @@ async def test_websocket(
|
|||||||
assert state.state == STATE_OFF
|
assert state.state == STATE_OFF
|
||||||
|
|
||||||
# Resolve Future with a connection losed.
|
# Resolve Future with a connection losed.
|
||||||
connection_finished.set_exception(WLEDConnectionClosed)
|
connection_finished.set_exception(WLEDConnectionClosedError)
|
||||||
await hass.async_block_till_done()
|
await hass.async_block_till_done()
|
||||||
|
|
||||||
# Disconnect called, unsubbed Home Assistant stop listener
|
# Disconnect called, unsubbed Home Assistant stop listener
|
||||||
|
Loading…
x
Reference in New Issue
Block a user