From b69b927795e4ede255b3f323e3594ce0a06acf6f Mon Sep 17 00:00:00 2001 From: Guido Schmitz Date: Tue, 30 Jul 2024 17:17:20 +0200 Subject: [PATCH] Set parallel updates in devolo_home_network (#122847) --- homeassistant/components/devolo_home_network/binary_sensor.py | 2 ++ homeassistant/components/devolo_home_network/button.py | 2 ++ homeassistant/components/devolo_home_network/device_tracker.py | 2 ++ homeassistant/components/devolo_home_network/image.py | 2 ++ homeassistant/components/devolo_home_network/sensor.py | 2 ++ homeassistant/components/devolo_home_network/switch.py | 2 ++ homeassistant/components/devolo_home_network/update.py | 2 ++ 7 files changed, 14 insertions(+) diff --git a/homeassistant/components/devolo_home_network/binary_sensor.py b/homeassistant/components/devolo_home_network/binary_sensor.py index 38d79951149..c96d0273a50 100644 --- a/homeassistant/components/devolo_home_network/binary_sensor.py +++ b/homeassistant/components/devolo_home_network/binary_sensor.py @@ -21,6 +21,8 @@ from . import DevoloHomeNetworkConfigEntry from .const import CONNECTED_PLC_DEVICES, CONNECTED_TO_ROUTER from .entity import DevoloCoordinatorEntity +PARALLEL_UPDATES = 1 + def _is_connected_to_router(entity: DevoloBinarySensorEntity) -> bool: """Check, if device is attached to the router.""" diff --git a/homeassistant/components/devolo_home_network/button.py b/homeassistant/components/devolo_home_network/button.py index 1f67912f020..ca17b572522 100644 --- a/homeassistant/components/devolo_home_network/button.py +++ b/homeassistant/components/devolo_home_network/button.py @@ -22,6 +22,8 @@ from . import DevoloHomeNetworkConfigEntry from .const import DOMAIN, IDENTIFY, PAIRING, RESTART, START_WPS from .entity import DevoloEntity +PARALLEL_UPDATES = 1 + @dataclass(frozen=True, kw_only=True) class DevoloButtonEntityDescription(ButtonEntityDescription): diff --git a/homeassistant/components/devolo_home_network/device_tracker.py b/homeassistant/components/devolo_home_network/device_tracker.py index 0a221779622..960069191ee 100644 --- a/homeassistant/components/devolo_home_network/device_tracker.py +++ b/homeassistant/components/devolo_home_network/device_tracker.py @@ -22,6 +22,8 @@ from homeassistant.helpers.update_coordinator import ( from . import DevoloHomeNetworkConfigEntry from .const import CONNECTED_WIFI_CLIENTS, DOMAIN, WIFI_APTYPE, WIFI_BANDS +PARALLEL_UPDATES = 1 + async def async_setup_entry( hass: HomeAssistant, diff --git a/homeassistant/components/devolo_home_network/image.py b/homeassistant/components/devolo_home_network/image.py index ee3b079da02..58052d3021e 100644 --- a/homeassistant/components/devolo_home_network/image.py +++ b/homeassistant/components/devolo_home_network/image.py @@ -20,6 +20,8 @@ from . import DevoloHomeNetworkConfigEntry from .const import IMAGE_GUEST_WIFI, SWITCH_GUEST_WIFI from .entity import DevoloCoordinatorEntity +PARALLEL_UPDATES = 1 + @dataclass(frozen=True, kw_only=True) class DevoloImageEntityDescription(ImageEntityDescription): diff --git a/homeassistant/components/devolo_home_network/sensor.py b/homeassistant/components/devolo_home_network/sensor.py index ffd40acf42a..2fd8ab9220c 100644 --- a/homeassistant/components/devolo_home_network/sensor.py +++ b/homeassistant/components/devolo_home_network/sensor.py @@ -31,6 +31,8 @@ from .const import ( ) from .entity import DevoloCoordinatorEntity +PARALLEL_UPDATES = 1 + _CoordinatorDataT = TypeVar( "_CoordinatorDataT", bound=LogicalNetwork | DataRate | list[ConnectedStationInfo] | list[NeighborAPInfo], diff --git a/homeassistant/components/devolo_home_network/switch.py b/homeassistant/components/devolo_home_network/switch.py index 3df67287f3b..c3400916d78 100644 --- a/homeassistant/components/devolo_home_network/switch.py +++ b/homeassistant/components/devolo_home_network/switch.py @@ -21,6 +21,8 @@ from . import DevoloHomeNetworkConfigEntry from .const import DOMAIN, SWITCH_GUEST_WIFI, SWITCH_LEDS from .entity import DevoloCoordinatorEntity +PARALLEL_UPDATES = 1 + _DataT = TypeVar("_DataT", bound=WifiGuestAccessGet | bool) diff --git a/homeassistant/components/devolo_home_network/update.py b/homeassistant/components/devolo_home_network/update.py index 92f5cb0f094..29c0c8762b9 100644 --- a/homeassistant/components/devolo_home_network/update.py +++ b/homeassistant/components/devolo_home_network/update.py @@ -26,6 +26,8 @@ from . import DevoloHomeNetworkConfigEntry from .const import DOMAIN, REGULAR_FIRMWARE from .entity import DevoloCoordinatorEntity +PARALLEL_UPDATES = 1 + @dataclass(frozen=True, kw_only=True) class DevoloUpdateEntityDescription(UpdateEntityDescription):