From f54864a476067cddaed0144da56a8e0e1ec07c80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20Bregu=C5=82a?= Date: Mon, 3 Nov 2025 12:32:43 +0100 Subject: [PATCH] Set PARALLEL_UPDATES for WLED (#155573) Co-authored-by: mik-laj <12058428+mik-laj@users.noreply.github.com> --- homeassistant/components/wled/button.py | 2 ++ homeassistant/components/wled/sensor.py | 3 +++ homeassistant/components/wled/update.py | 2 ++ 3 files changed, 7 insertions(+) diff --git a/homeassistant/components/wled/button.py b/homeassistant/components/wled/button.py index 119b2dc9b9f..0ef0e15b373 100644 --- a/homeassistant/components/wled/button.py +++ b/homeassistant/components/wled/button.py @@ -12,6 +12,8 @@ from .coordinator import WLEDDataUpdateCoordinator from .entity import WLEDEntity from .helpers import wled_exception_handler +PARALLEL_UPDATES = 1 + async def async_setup_entry( hass: HomeAssistant, diff --git a/homeassistant/components/wled/sensor.py b/homeassistant/components/wled/sensor.py index 06f96782019..a8d277cfda9 100644 --- a/homeassistant/components/wled/sensor.py +++ b/homeassistant/components/wled/sensor.py @@ -30,6 +30,9 @@ from . import WLEDConfigEntry from .coordinator import WLEDDataUpdateCoordinator from .entity import WLEDEntity +# Coordinator is used to centralize the data updates +PARALLEL_UPDATES = 0 + @dataclass(frozen=True, kw_only=True) class WLEDSensorEntityDescription(SensorEntityDescription): diff --git a/homeassistant/components/wled/update.py b/homeassistant/components/wled/update.py index ccf72425b77..e75b5b7eb82 100644 --- a/homeassistant/components/wled/update.py +++ b/homeassistant/components/wled/update.py @@ -17,6 +17,8 @@ from .coordinator import WLEDDataUpdateCoordinator, WLEDReleasesDataUpdateCoordi from .entity import WLEDEntity from .helpers import wled_exception_handler +PARALLEL_UPDATES = 1 + async def async_setup_entry( hass: HomeAssistant,