From 095b04caf9f12e6aab8e30764dd692cf8e36f97b Mon Sep 17 00:00:00 2001
From: Markus Adrario <Mozilla@adrario.de>
Date: Thu, 6 Mar 2025 12:20:22 +0100
Subject: [PATCH] Homee parallel updates (#139926)

* set parallel updates to 0

* add platforms
---
 homeassistant/components/homee/button.py          | 2 ++
 homeassistant/components/homee/cover.py           | 2 ++
 homeassistant/components/homee/light.py           | 2 ++
 homeassistant/components/homee/number.py          | 2 ++
 homeassistant/components/homee/quality_scale.yaml | 2 +-
 homeassistant/components/homee/sensor.py          | 2 ++
 homeassistant/components/homee/switch.py          | 2 ++
 homeassistant/components/homee/valve.py           | 2 ++
 8 files changed, 15 insertions(+), 1 deletion(-)

diff --git a/homeassistant/components/homee/button.py b/homeassistant/components/homee/button.py
index af6d769c1dc..33a8b5f23c8 100644
--- a/homeassistant/components/homee/button.py
+++ b/homeassistant/components/homee/button.py
@@ -15,6 +15,8 @@ from homeassistant.helpers.entity_platform import AddConfigEntryEntitiesCallback
 from . import HomeeConfigEntry
 from .entity import HomeeEntity
 
+PARALLEL_UPDATES = 0
+
 BUTTON_DESCRIPTIONS: dict[AttributeType, ButtonEntityDescription] = {
     AttributeType.AUTOMATIC_MODE_IMPULSE: ButtonEntityDescription(key="automatic_mode"),
     AttributeType.BRIEFLY_OPEN_IMPULSE: ButtonEntityDescription(key="briefly_open"),
diff --git a/homeassistant/components/homee/cover.py b/homeassistant/components/homee/cover.py
index 6e7e4fd5c55..79a9b00ffba 100644
--- a/homeassistant/components/homee/cover.py
+++ b/homeassistant/components/homee/cover.py
@@ -21,6 +21,8 @@ from .entity import HomeeNodeEntity
 
 _LOGGER = logging.getLogger(__name__)
 
+PARALLEL_UPDATES = 0
+
 OPEN_CLOSE_ATTRIBUTES = [
     AttributeType.OPEN_CLOSE,
     AttributeType.SLAT_ROTATION_IMPULSE,
diff --git a/homeassistant/components/homee/light.py b/homeassistant/components/homee/light.py
index b9c4460075a..9c66764760e 100644
--- a/homeassistant/components/homee/light.py
+++ b/homeassistant/components/homee/light.py
@@ -32,6 +32,8 @@ LIGHT_ATTRIBUTES = [
     AttributeType.DIMMING_LEVEL,
 ]
 
+PARALLEL_UPDATES = 0
+
 
 def is_light_node(node: HomeeNode) -> bool:
     """Determine if a node is controllable as a homee light based on its profile and attributes."""
diff --git a/homeassistant/components/homee/number.py b/homeassistant/components/homee/number.py
index 3f1f08a6618..5f76b826fcf 100644
--- a/homeassistant/components/homee/number.py
+++ b/homeassistant/components/homee/number.py
@@ -16,6 +16,8 @@ from . import HomeeConfigEntry
 from .const import HOMEE_UNIT_TO_HA_UNIT
 from .entity import HomeeEntity
 
+PARALLEL_UPDATES = 0
+
 NUMBER_DESCRIPTIONS = {
     AttributeType.DOWN_POSITION: NumberEntityDescription(
         key="down_position",
diff --git a/homeassistant/components/homee/quality_scale.yaml b/homeassistant/components/homee/quality_scale.yaml
index ff99d177018..906218cf823 100644
--- a/homeassistant/components/homee/quality_scale.yaml
+++ b/homeassistant/components/homee/quality_scale.yaml
@@ -35,7 +35,7 @@ rules:
   entity-unavailable: done
   integration-owner: done
   log-when-unavailable: done
-  parallel-updates: todo
+  parallel-updates: done
   reauthentication-flow: todo
   test-coverage: todo
 
diff --git a/homeassistant/components/homee/sensor.py b/homeassistant/components/homee/sensor.py
index 410f87f2168..e65b73b4a67 100644
--- a/homeassistant/components/homee/sensor.py
+++ b/homeassistant/components/homee/sensor.py
@@ -27,6 +27,8 @@ from .const import (
 from .entity import HomeeEntity, HomeeNodeEntity
 from .helpers import get_name_for_enum
 
+PARALLEL_UPDATES = 0
+
 
 def get_open_close_value(attribute: HomeeAttribute) -> str | None:
     """Return the open/close value."""
diff --git a/homeassistant/components/homee/switch.py b/homeassistant/components/homee/switch.py
index 86c7acdbf11..041b96963f1 100644
--- a/homeassistant/components/homee/switch.py
+++ b/homeassistant/components/homee/switch.py
@@ -20,6 +20,8 @@ from . import HomeeConfigEntry
 from .const import CLIMATE_PROFILES, LIGHT_PROFILES
 from .entity import HomeeEntity
 
+PARALLEL_UPDATES = 0
+
 
 def get_device_class(
     attribute: HomeeAttribute, config_entry: HomeeConfigEntry
diff --git a/homeassistant/components/homee/valve.py b/homeassistant/components/homee/valve.py
index 9a4ff446a10..995716d7ef8 100644
--- a/homeassistant/components/homee/valve.py
+++ b/homeassistant/components/homee/valve.py
@@ -15,6 +15,8 @@ from homeassistant.helpers.entity_platform import AddConfigEntryEntitiesCallback
 from . import HomeeConfigEntry
 from .entity import HomeeEntity
 
+PARALLEL_UPDATES = 0
+
 VALVE_DESCRIPTIONS = {
     AttributeType.CURRENT_VALVE_POSITION: ValveEntityDescription(
         key="valve_position",
-- 
GitLab