From 6aaa57f66050816ddf65cb701be3e5ba9af75b37 Mon Sep 17 00:00:00 2001 From: cdnninja Date: Mon, 5 Jan 2026 01:18:16 -0700 Subject: [PATCH] Set PARALLEL_UPDATES in VeSync (#160272) --- homeassistant/components/vesync/binary_sensor.py | 2 ++ homeassistant/components/vesync/fan.py | 2 ++ homeassistant/components/vesync/humidifier.py | 2 ++ homeassistant/components/vesync/light.py | 2 ++ homeassistant/components/vesync/number.py | 2 ++ homeassistant/components/vesync/quality_scale.yaml | 2 +- homeassistant/components/vesync/select.py | 2 ++ homeassistant/components/vesync/sensor.py | 2 ++ homeassistant/components/vesync/switch.py | 2 ++ homeassistant/components/vesync/update.py | 2 ++ 10 files changed, 19 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/vesync/binary_sensor.py b/homeassistant/components/vesync/binary_sensor.py index 953baaf2ca4..e18755f995f 100644 --- a/homeassistant/components/vesync/binary_sensor.py +++ b/homeassistant/components/vesync/binary_sensor.py @@ -25,6 +25,8 @@ from .entity import VeSyncBaseEntity _LOGGER = logging.getLogger(__name__) +PARALLEL_UPDATES = 0 + @dataclass(frozen=True, kw_only=True) class VeSyncBinarySensorEntityDescription(BinarySensorEntityDescription): diff --git a/homeassistant/components/vesync/fan.py b/homeassistant/components/vesync/fan.py index c0c7a2aee03..75bfb203bda 100644 --- a/homeassistant/components/vesync/fan.py +++ b/homeassistant/components/vesync/fan.py @@ -47,6 +47,8 @@ VS_TO_HA_MODE_MAP = { VS_FAN_MODE_NORMAL: VS_FAN_MODE_NORMAL, } +PARALLEL_UPDATES = 1 + async def async_setup_entry( hass: HomeAssistant, diff --git a/homeassistant/components/vesync/humidifier.py b/homeassistant/components/vesync/humidifier.py index 079f47bc81f..0ecaeb4e58d 100644 --- a/homeassistant/components/vesync/humidifier.py +++ b/homeassistant/components/vesync/humidifier.py @@ -38,6 +38,8 @@ VS_TO_HA_MODE_MAP = { VS_HUMIDIFIER_MODE_SLEEP: MODE_SLEEP, } +PARALLEL_UPDATES = 1 + async def async_setup_entry( hass: HomeAssistant, diff --git a/homeassistant/components/vesync/light.py b/homeassistant/components/vesync/light.py index 05c99be4466..9b56274634a 100644 --- a/homeassistant/components/vesync/light.py +++ b/homeassistant/components/vesync/light.py @@ -27,6 +27,8 @@ _LOGGER = logging.getLogger(__name__) MAX_MIREDS = 370 # 1,000,000 divided by 2700 Kelvin = 370 Mireds MIN_MIREDS = 153 # 1,000,000 divided by 6500 Kelvin = 153 Mireds +PARALLEL_UPDATES = 1 + async def async_setup_entry( hass: HomeAssistant, diff --git a/homeassistant/components/vesync/number.py b/homeassistant/components/vesync/number.py index 3b75ca8b745..109774bb672 100644 --- a/homeassistant/components/vesync/number.py +++ b/homeassistant/components/vesync/number.py @@ -24,6 +24,8 @@ from .entity import VeSyncBaseEntity _LOGGER = logging.getLogger(__name__) +PARALLEL_UPDATES = 1 + @dataclass(frozen=True, kw_only=True) class VeSyncNumberEntityDescription(NumberEntityDescription): diff --git a/homeassistant/components/vesync/quality_scale.yaml b/homeassistant/components/vesync/quality_scale.yaml index b56c9ccde23..a61a0be3b4f 100644 --- a/homeassistant/components/vesync/quality_scale.yaml +++ b/homeassistant/components/vesync/quality_scale.yaml @@ -37,7 +37,7 @@ rules: comment: We should also incorporate super().available to go unavailable when the coordinator update fails integration-owner: done log-when-unavailable: todo - parallel-updates: todo + parallel-updates: done reauthentication-flow: done test-coverage: todo diff --git a/homeassistant/components/vesync/select.py b/homeassistant/components/vesync/select.py index 3ff917e7127..4da5ff98aba 100644 --- a/homeassistant/components/vesync/select.py +++ b/homeassistant/components/vesync/select.py @@ -42,6 +42,8 @@ HA_TO_VS_HUMIDIFIER_NIGHT_LIGHT_LEVEL_MAP = { v: k for k, v in VS_TO_HA_HUMIDIFIER_NIGHT_LIGHT_LEVEL_MAP.items() } +PARALLEL_UPDATES = 1 + @dataclass(frozen=True, kw_only=True) class VeSyncSelectEntityDescription(SelectEntityDescription): diff --git a/homeassistant/components/vesync/sensor.py b/homeassistant/components/vesync/sensor.py index 5c441aa55fc..b44464f1594 100644 --- a/homeassistant/components/vesync/sensor.py +++ b/homeassistant/components/vesync/sensor.py @@ -36,6 +36,8 @@ from .entity import VeSyncBaseEntity _LOGGER = logging.getLogger(__name__) +PARALLEL_UPDATES = 0 + @dataclass(frozen=True, kw_only=True) class VeSyncSensorEntityDescription(SensorEntityDescription): diff --git a/homeassistant/components/vesync/switch.py b/homeassistant/components/vesync/switch.py index 938e5abd9e4..701b425cd99 100644 --- a/homeassistant/components/vesync/switch.py +++ b/homeassistant/components/vesync/switch.py @@ -25,6 +25,8 @@ from .entity import VeSyncBaseEntity _LOGGER = logging.getLogger(__name__) +PARALLEL_UPDATES = 1 + @dataclass(frozen=True, kw_only=True) class VeSyncSwitchEntityDescription(SwitchEntityDescription): diff --git a/homeassistant/components/vesync/update.py b/homeassistant/components/vesync/update.py index 52cbbdd1049..9655c709984 100644 --- a/homeassistant/components/vesync/update.py +++ b/homeassistant/components/vesync/update.py @@ -12,6 +12,8 @@ from .const import VS_DEVICES, VS_DISCOVERY from .coordinator import VesyncConfigEntry, VeSyncDataCoordinator from .entity import VeSyncBaseEntity +PARALLEL_UPDATES = 0 + async def async_setup_entry( hass: HomeAssistant,