From 684fe242d9c2afdd0b5d21d7b459f86b300a9ee6 Mon Sep 17 00:00:00 2001 From: Raman Gupta <7243222+raman325@users.noreply.github.com> Date: Wed, 11 May 2022 23:51:10 -0400 Subject: [PATCH] Set PARALLEL_UPDATES to 0 for all zwave_js platforms (#71626) --- homeassistant/components/zwave_js/binary_sensor.py | 2 ++ homeassistant/components/zwave_js/button.py | 2 ++ homeassistant/components/zwave_js/climate.py | 2 ++ homeassistant/components/zwave_js/cover.py | 2 ++ homeassistant/components/zwave_js/fan.py | 2 ++ homeassistant/components/zwave_js/humidifier.py | 2 ++ homeassistant/components/zwave_js/light.py | 2 ++ homeassistant/components/zwave_js/lock.py | 2 ++ homeassistant/components/zwave_js/number.py | 2 ++ homeassistant/components/zwave_js/select.py | 2 ++ homeassistant/components/zwave_js/sensor.py | 2 ++ homeassistant/components/zwave_js/siren.py | 2 ++ homeassistant/components/zwave_js/switch.py | 2 ++ 13 files changed, 26 insertions(+) diff --git a/homeassistant/components/zwave_js/binary_sensor.py b/homeassistant/components/zwave_js/binary_sensor.py index 88ab7221600..8a86898239a 100644 --- a/homeassistant/components/zwave_js/binary_sensor.py +++ b/homeassistant/components/zwave_js/binary_sensor.py @@ -27,6 +27,8 @@ from .const import DATA_CLIENT, DOMAIN from .discovery import ZwaveDiscoveryInfo from .entity import ZWaveBaseEntity +PARALLEL_UPDATES = 0 + LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/zwave_js/button.py b/homeassistant/components/zwave_js/button.py index ea987b56258..49c2a76cccf 100644 --- a/homeassistant/components/zwave_js/button.py +++ b/homeassistant/components/zwave_js/button.py @@ -14,6 +14,8 @@ from homeassistant.helpers.entity_platform import AddEntitiesCallback from .const import DATA_CLIENT, DOMAIN, LOGGER from .helpers import get_device_id, get_valueless_base_unique_id +PARALLEL_UPDATES = 0 + async def async_setup_entry( hass: HomeAssistant, diff --git a/homeassistant/components/zwave_js/climate.py b/homeassistant/components/zwave_js/climate.py index 188e627bb5e..67def698fc2 100644 --- a/homeassistant/components/zwave_js/climate.py +++ b/homeassistant/components/zwave_js/climate.py @@ -52,6 +52,8 @@ from .discovery_data_template import DynamicCurrentTempClimateDataTemplate from .entity import ZWaveBaseEntity from .helpers import get_value_of_zwave_value +PARALLEL_UPDATES = 0 + # Map Z-Wave HVAC Mode to Home Assistant value # Note: We treat "auto" as "heat_cool" as most Z-Wave devices # report auto_changeover as auto without schedule support. diff --git a/homeassistant/components/zwave_js/cover.py b/homeassistant/components/zwave_js/cover.py index 9281f0bc21c..c7ba50ee7e7 100644 --- a/homeassistant/components/zwave_js/cover.py +++ b/homeassistant/components/zwave_js/cover.py @@ -35,6 +35,8 @@ from .discovery import ZwaveDiscoveryInfo from .discovery_data_template import CoverTiltDataTemplate from .entity import ZWaveBaseEntity +PARALLEL_UPDATES = 0 + LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/zwave_js/fan.py b/homeassistant/components/zwave_js/fan.py index 623ee072f3a..f571884ac80 100644 --- a/homeassistant/components/zwave_js/fan.py +++ b/homeassistant/components/zwave_js/fan.py @@ -35,6 +35,8 @@ from .discovery_data_template import FanValueMapping, FanValueMappingDataTemplat from .entity import ZWaveBaseEntity from .helpers import get_value_of_zwave_value +PARALLEL_UPDATES = 0 + DEFAULT_SPEED_RANGE = (1, 99) # off is not included ATTR_FAN_STATE = "fan_state" diff --git a/homeassistant/components/zwave_js/humidifier.py b/homeassistant/components/zwave_js/humidifier.py index 44d7bc19bbb..8cf0b6aec7c 100644 --- a/homeassistant/components/zwave_js/humidifier.py +++ b/homeassistant/components/zwave_js/humidifier.py @@ -32,6 +32,8 @@ from .const import DATA_CLIENT, DOMAIN from .discovery import ZwaveDiscoveryInfo from .entity import ZWaveBaseEntity +PARALLEL_UPDATES = 0 + @dataclass class ZwaveHumidifierEntityDescriptionRequiredKeys: diff --git a/homeassistant/components/zwave_js/light.py b/homeassistant/components/zwave_js/light.py index ca51bc83986..534a86f1c86 100644 --- a/homeassistant/components/zwave_js/light.py +++ b/homeassistant/components/zwave_js/light.py @@ -45,6 +45,8 @@ from .const import DATA_CLIENT, DOMAIN from .discovery import ZwaveDiscoveryInfo from .entity import ZWaveBaseEntity +PARALLEL_UPDATES = 0 + LOGGER = logging.getLogger(__name__) MULTI_COLOR_MAP = { diff --git a/homeassistant/components/zwave_js/lock.py b/homeassistant/components/zwave_js/lock.py index d70b6ef2009..3781821e4c7 100644 --- a/homeassistant/components/zwave_js/lock.py +++ b/homeassistant/components/zwave_js/lock.py @@ -34,6 +34,8 @@ from .const import ( from .discovery import ZwaveDiscoveryInfo from .entity import ZWaveBaseEntity +PARALLEL_UPDATES = 0 + LOGGER = logging.getLogger(__name__) STATE_TO_ZWAVE_MAP: dict[int, dict[str, int | bool]] = { diff --git a/homeassistant/components/zwave_js/number.py b/homeassistant/components/zwave_js/number.py index 16434b51108..fb9266ac071 100644 --- a/homeassistant/components/zwave_js/number.py +++ b/homeassistant/components/zwave_js/number.py @@ -14,6 +14,8 @@ from .const import DATA_CLIENT, DOMAIN from .discovery import ZwaveDiscoveryInfo from .entity import ZWaveBaseEntity +PARALLEL_UPDATES = 0 + async def async_setup_entry( hass: HomeAssistant, diff --git a/homeassistant/components/zwave_js/select.py b/homeassistant/components/zwave_js/select.py index c6bc11a4804..085c694fc0e 100644 --- a/homeassistant/components/zwave_js/select.py +++ b/homeassistant/components/zwave_js/select.py @@ -18,6 +18,8 @@ from .const import DATA_CLIENT, DOMAIN from .discovery import ZwaveDiscoveryInfo from .entity import ZWaveBaseEntity +PARALLEL_UPDATES = 0 + async def async_setup_entry( hass: HomeAssistant, diff --git a/homeassistant/components/zwave_js/sensor.py b/homeassistant/components/zwave_js/sensor.py index e60a0793608..71e6bc48952 100644 --- a/homeassistant/components/zwave_js/sensor.py +++ b/homeassistant/components/zwave_js/sensor.py @@ -63,6 +63,8 @@ from .discovery_data_template import ( from .entity import ZWaveBaseEntity from .helpers import get_device_id, get_valueless_base_unique_id +PARALLEL_UPDATES = 0 + LOGGER = logging.getLogger(__name__) STATUS_ICON: dict[NodeStatus, str] = { diff --git a/homeassistant/components/zwave_js/siren.py b/homeassistant/components/zwave_js/siren.py index e7443f33dae..e686c5446ca 100644 --- a/homeassistant/components/zwave_js/siren.py +++ b/homeassistant/components/zwave_js/siren.py @@ -21,6 +21,8 @@ from .const import DATA_CLIENT, DOMAIN from .discovery import ZwaveDiscoveryInfo from .entity import ZWaveBaseEntity +PARALLEL_UPDATES = 0 + async def async_setup_entry( hass: HomeAssistant, diff --git a/homeassistant/components/zwave_js/switch.py b/homeassistant/components/zwave_js/switch.py index a680a8fb04a..115f90b8e11 100644 --- a/homeassistant/components/zwave_js/switch.py +++ b/homeassistant/components/zwave_js/switch.py @@ -20,6 +20,8 @@ from .const import DATA_CLIENT, DOMAIN from .discovery import ZwaveDiscoveryInfo from .entity import ZWaveBaseEntity +PARALLEL_UPDATES = 0 + LOGGER = logging.getLogger(__name__)