From 0719753be3c42129729c3ded794e75ff6a4b4a42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=85ke=20Strandberg?= Date: Mon, 12 May 2025 23:53:54 +0200 Subject: [PATCH] Set PARALLEL_UPDATES and update quality_scale for Miele integration (#144770) Set PARALLEL_UPDATES and update quality_scale --- homeassistant/components/miele/binary_sensor.py | 2 ++ homeassistant/components/miele/button.py | 2 ++ homeassistant/components/miele/climate.py | 2 ++ homeassistant/components/miele/fan.py | 2 ++ homeassistant/components/miele/light.py | 2 ++ .../components/miele/quality_scale.yaml | 17 +++++++++++------ homeassistant/components/miele/sensor.py | 2 ++ homeassistant/components/miele/switch.py | 2 ++ homeassistant/components/miele/vacuum.py | 2 ++ 9 files changed, 27 insertions(+), 6 deletions(-) diff --git a/homeassistant/components/miele/binary_sensor.py b/homeassistant/components/miele/binary_sensor.py index 9b0868beed4..b43bd86010e 100644 --- a/homeassistant/components/miele/binary_sensor.py +++ b/homeassistant/components/miele/binary_sensor.py @@ -23,6 +23,8 @@ from .const import MieleAppliance from .coordinator import MieleConfigEntry from .entity import MieleEntity +PARALLEL_UPDATES = 0 + _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/miele/button.py b/homeassistant/components/miele/button.py index b749ce364f0..4086c002743 100644 --- a/homeassistant/components/miele/button.py +++ b/homeassistant/components/miele/button.py @@ -17,6 +17,8 @@ from .const import DOMAIN, PROCESS_ACTION, MieleActions, MieleAppliance from .coordinator import MieleConfigEntry from .entity import MieleEntity +PARALLEL_UPDATES = 1 + _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/miele/climate.py b/homeassistant/components/miele/climate.py index 4324444d987..85235322616 100644 --- a/homeassistant/components/miele/climate.py +++ b/homeassistant/components/miele/climate.py @@ -26,6 +26,8 @@ from .const import DEVICE_TYPE_TAGS, DISABLED_TEMP_ENTITIES, DOMAIN, MieleApplia from .coordinator import MieleConfigEntry, MieleDataUpdateCoordinator from .entity import MieleEntity +PARALLEL_UPDATES = 1 + _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/miele/fan.py b/homeassistant/components/miele/fan.py index e8bea197f58..5faaa46b33c 100644 --- a/homeassistant/components/miele/fan.py +++ b/homeassistant/components/miele/fan.py @@ -27,6 +27,8 @@ from .const import DOMAIN, POWER_OFF, POWER_ON, VENTILATION_STEP, MieleAppliance from .coordinator import MieleConfigEntry, MieleDataUpdateCoordinator from .entity import MieleEntity +PARALLEL_UPDATES = 1 + _LOGGER = logging.getLogger(__name__) SPEED_RANGE = (1, 4) diff --git a/homeassistant/components/miele/light.py b/homeassistant/components/miele/light.py index 678c2f92382..e918b93b12a 100644 --- a/homeassistant/components/miele/light.py +++ b/homeassistant/components/miele/light.py @@ -23,6 +23,8 @@ from .const import AMBIENT_LIGHT, DOMAIN, LIGHT, LIGHT_OFF, LIGHT_ON, MieleAppli from .coordinator import MieleConfigEntry from .entity import MieleDevice, MieleEntity +PARALLEL_UPDATES = 1 + _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/miele/quality_scale.yaml b/homeassistant/components/miele/quality_scale.yaml index e9d229c6a1b..d0c3677db40 100644 --- a/homeassistant/components/miele/quality_scale.yaml +++ b/homeassistant/components/miele/quality_scale.yaml @@ -32,18 +32,23 @@ rules: Handled by a setting in manifest.json as there is no account information in API # Silver - action-exceptions: todo + action-exceptions: + status: done + comment: No custom actions are defined config-entry-unloading: done docs-configuration-parameters: status: exempt comment: No configuration parameters - docs-installation-parameters: todo + docs-installation-parameters: + status: exempt + comment: | + Integration uses account linking via Nabu casa so no installation parameters are needed. entity-unavailable: done integration-owner: done - log-when-unavailable: todo - parallel-updates: - status: exempt - comment: Handled by coordinator + log-when-unavailable: + status: done + comment: Handled by DataUpdateCoordinator + parallel-updates: done reauthentication-flow: done test-coverage: todo diff --git a/homeassistant/components/miele/sensor.py b/homeassistant/components/miele/sensor.py index 64948cf7b83..5a0b9212971 100644 --- a/homeassistant/components/miele/sensor.py +++ b/homeassistant/components/miele/sensor.py @@ -39,6 +39,8 @@ from .const import ( from .coordinator import MieleConfigEntry, MieleDataUpdateCoordinator from .entity import MieleEntity +PARALLEL_UPDATES = 0 + _LOGGER = logging.getLogger(__name__) DISABLED_TEMPERATURE = -32768 diff --git a/homeassistant/components/miele/switch.py b/homeassistant/components/miele/switch.py index 4cd237aa724..af46ef2c917 100644 --- a/homeassistant/components/miele/switch.py +++ b/homeassistant/components/miele/switch.py @@ -28,6 +28,8 @@ from .const import ( from .coordinator import MieleConfigEntry from .entity import MieleEntity +PARALLEL_UPDATES = 1 + _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/miele/vacuum.py b/homeassistant/components/miele/vacuum.py index 02d85cabdef..1e14d33f461 100644 --- a/homeassistant/components/miele/vacuum.py +++ b/homeassistant/components/miele/vacuum.py @@ -24,6 +24,8 @@ from .const import DOMAIN, PROCESS_ACTION, PROGRAM_ID, MieleActions, MieleApplia from .coordinator import MieleConfigEntry from .entity import MieleEntity +PARALLEL_UPDATES = 1 + _LOGGER = logging.getLogger(__name__) # The following const classes define program speeds and programs for the vacuum cleaner.