From e5c0183e0f8c5b1eff4b778a6af73d0c4a3bcb3d Mon Sep 17 00:00:00 2001 From: Manu <4445816+tr4nt0r@users.noreply.github.com> Date: Thu, 20 Feb 2025 08:15:14 +0100 Subject: [PATCH] Set parallel_updates in pyLoad integration (#138897) Set parallel_updates --- homeassistant/components/pyload/button.py | 2 ++ homeassistant/components/pyload/sensor.py | 2 ++ homeassistant/components/pyload/switch.py | 2 ++ 3 files changed, 6 insertions(+) diff --git a/homeassistant/components/pyload/button.py b/homeassistant/components/pyload/button.py index 9fcba7e723a..6303ced09f0 100644 --- a/homeassistant/components/pyload/button.py +++ b/homeassistant/components/pyload/button.py @@ -18,6 +18,8 @@ from .const import DOMAIN from .coordinator import PyLoadConfigEntry from .entity import BasePyLoadEntity +PARALLEL_UPDATES = 1 + @dataclass(kw_only=True, frozen=True) class PyLoadButtonEntityDescription(ButtonEntityDescription): diff --git a/homeassistant/components/pyload/sensor.py b/homeassistant/components/pyload/sensor.py index edf7c6a756c..7425c543fe1 100644 --- a/homeassistant/components/pyload/sensor.py +++ b/homeassistant/components/pyload/sensor.py @@ -21,6 +21,8 @@ from .const import UNIT_DOWNLOADS from .coordinator import PyLoadConfigEntry, PyLoadData from .entity import BasePyLoadEntity +PARALLEL_UPDATES = 0 + class PyLoadSensorEntity(StrEnum): """pyLoad Sensor Entities.""" diff --git a/homeassistant/components/pyload/switch.py b/homeassistant/components/pyload/switch.py index d4416666d93..57160cbf5c1 100644 --- a/homeassistant/components/pyload/switch.py +++ b/homeassistant/components/pyload/switch.py @@ -22,6 +22,8 @@ from .const import DOMAIN from .coordinator import PyLoadConfigEntry, PyLoadData from .entity import BasePyLoadEntity +PARALLEL_UPDATES = 1 + class PyLoadSwitch(StrEnum): """PyLoad Switch Entities."""