Homee parallel updates (#139926)

* set parallel updates to 0

* add platforms
This commit is contained in:
Markus Adrario 2025-03-06 12:20:22 +01:00 committed by GitHub
parent 83dd1af6d2
commit 095b04caf9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 15 additions and 1 deletions

View File

@ -15,6 +15,8 @@ from homeassistant.helpers.entity_platform import AddConfigEntryEntitiesCallback
from . import HomeeConfigEntry from . import HomeeConfigEntry
from .entity import HomeeEntity from .entity import HomeeEntity
PARALLEL_UPDATES = 0
BUTTON_DESCRIPTIONS: dict[AttributeType, ButtonEntityDescription] = { BUTTON_DESCRIPTIONS: dict[AttributeType, ButtonEntityDescription] = {
AttributeType.AUTOMATIC_MODE_IMPULSE: ButtonEntityDescription(key="automatic_mode"), AttributeType.AUTOMATIC_MODE_IMPULSE: ButtonEntityDescription(key="automatic_mode"),
AttributeType.BRIEFLY_OPEN_IMPULSE: ButtonEntityDescription(key="briefly_open"), AttributeType.BRIEFLY_OPEN_IMPULSE: ButtonEntityDescription(key="briefly_open"),

View File

@ -21,6 +21,8 @@ from .entity import HomeeNodeEntity
_LOGGER = logging.getLogger(__name__) _LOGGER = logging.getLogger(__name__)
PARALLEL_UPDATES = 0
OPEN_CLOSE_ATTRIBUTES = [ OPEN_CLOSE_ATTRIBUTES = [
AttributeType.OPEN_CLOSE, AttributeType.OPEN_CLOSE,
AttributeType.SLAT_ROTATION_IMPULSE, AttributeType.SLAT_ROTATION_IMPULSE,

View File

@ -32,6 +32,8 @@ LIGHT_ATTRIBUTES = [
AttributeType.DIMMING_LEVEL, AttributeType.DIMMING_LEVEL,
] ]
PARALLEL_UPDATES = 0
def is_light_node(node: HomeeNode) -> bool: def is_light_node(node: HomeeNode) -> bool:
"""Determine if a node is controllable as a homee light based on its profile and attributes.""" """Determine if a node is controllable as a homee light based on its profile and attributes."""

View File

@ -16,6 +16,8 @@ from . import HomeeConfigEntry
from .const import HOMEE_UNIT_TO_HA_UNIT from .const import HOMEE_UNIT_TO_HA_UNIT
from .entity import HomeeEntity from .entity import HomeeEntity
PARALLEL_UPDATES = 0
NUMBER_DESCRIPTIONS = { NUMBER_DESCRIPTIONS = {
AttributeType.DOWN_POSITION: NumberEntityDescription( AttributeType.DOWN_POSITION: NumberEntityDescription(
key="down_position", key="down_position",

View File

@ -35,7 +35,7 @@ rules:
entity-unavailable: done entity-unavailable: done
integration-owner: done integration-owner: done
log-when-unavailable: done log-when-unavailable: done
parallel-updates: todo parallel-updates: done
reauthentication-flow: todo reauthentication-flow: todo
test-coverage: todo test-coverage: todo

View File

@ -27,6 +27,8 @@ from .const import (
from .entity import HomeeEntity, HomeeNodeEntity from .entity import HomeeEntity, HomeeNodeEntity
from .helpers import get_name_for_enum from .helpers import get_name_for_enum
PARALLEL_UPDATES = 0
def get_open_close_value(attribute: HomeeAttribute) -> str | None: def get_open_close_value(attribute: HomeeAttribute) -> str | None:
"""Return the open/close value.""" """Return the open/close value."""

View File

@ -20,6 +20,8 @@ from . import HomeeConfigEntry
from .const import CLIMATE_PROFILES, LIGHT_PROFILES from .const import CLIMATE_PROFILES, LIGHT_PROFILES
from .entity import HomeeEntity from .entity import HomeeEntity
PARALLEL_UPDATES = 0
def get_device_class( def get_device_class(
attribute: HomeeAttribute, config_entry: HomeeConfigEntry attribute: HomeeAttribute, config_entry: HomeeConfigEntry

View File

@ -15,6 +15,8 @@ from homeassistant.helpers.entity_platform import AddConfigEntryEntitiesCallback
from . import HomeeConfigEntry from . import HomeeConfigEntry
from .entity import HomeeEntity from .entity import HomeeEntity
PARALLEL_UPDATES = 0
VALVE_DESCRIPTIONS = { VALVE_DESCRIPTIONS = {
AttributeType.CURRENT_VALVE_POSITION: ValveEntityDescription( AttributeType.CURRENT_VALVE_POSITION: ValveEntityDescription(
key="valve_position", key="valve_position",