Skip to content

Commit f54864a

Browse files
authored
Set PARALLEL_UPDATES for WLED (#155573)
Co-authored-by: mik-laj <[email protected]>
1 parent fe1ff45 commit f54864a

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

homeassistant/components/wled/button.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
from .entity import WLEDEntity
1313
from .helpers import wled_exception_handler
1414

15+
PARALLEL_UPDATES = 1
16+
1517

1618
async def async_setup_entry(
1719
hass: HomeAssistant,

homeassistant/components/wled/sensor.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@
3030
from .coordinator import WLEDDataUpdateCoordinator
3131
from .entity import WLEDEntity
3232

33+
# Coordinator is used to centralize the data updates
34+
PARALLEL_UPDATES = 0
35+
3336

3437
@dataclass(frozen=True, kw_only=True)
3538
class WLEDSensorEntityDescription(SensorEntityDescription):

homeassistant/components/wled/update.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
from .entity import WLEDEntity
1818
from .helpers import wled_exception_handler
1919

20+
PARALLEL_UPDATES = 1
21+
2022

2123
async def async_setup_entry(
2224
hass: HomeAssistant,

0 commit comments

Comments
 (0)