Add parallel updates to Home Connect (#139255)

This commit is contained in:
J. Diego Rodríguez Royo 2025-02-25 14:50:12 +01:00 committed by GitHub
parent 7ba94a680d
commit a3bc55f49b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 15 additions and 0 deletions

View File

@ -38,6 +38,8 @@ from .coordinator import (
)
from .entity import HomeConnectEntity
PARALLEL_UPDATES = 0
REFRIGERATION_DOOR_BOOLEAN_MAP = {
REFRIGERATION_STATUS_DOOR_CLOSED: False,
REFRIGERATION_STATUS_DOOR_OPEN: True,

View File

@ -18,6 +18,8 @@ from .coordinator import (
from .entity import HomeConnectEntity
from .utils import get_dict_from_home_connect_error
PARALLEL_UPDATES = 1
class HomeConnectCommandButtonEntityDescription(ButtonEntityDescription):
"""Describes Home Connect button entity."""

View File

@ -36,6 +36,8 @@ from .utils import get_dict_from_home_connect_error
_LOGGER = logging.getLogger(__name__)
PARALLEL_UPDATES = 1
@dataclass(frozen=True, kw_only=True)
class HomeConnectLightEntityDescription(LightEntityDescription):

View File

@ -30,6 +30,8 @@ from .utils import get_dict_from_home_connect_error
_LOGGER = logging.getLogger(__name__)
PARALLEL_UPDATES = 1
UNIT_MAP = {
"seconds": UnitOfTime.SECONDS,
"ml": UnitOfVolume.MILLILITERS,

View File

@ -50,6 +50,8 @@ from .coordinator import (
from .entity import HomeConnectEntity, HomeConnectOptionEntity
from .utils import bsh_key_to_translation_key, get_dict_from_home_connect_error
PARALLEL_UPDATES = 1
FUNCTIONAL_LIGHT_COLOR_TEMPERATURE_ENUM = {
bsh_key_to_translation_key(option): option
for option in (

View File

@ -27,6 +27,8 @@ from .const import (
from .coordinator import HomeConnectApplianceData, HomeConnectConfigEntry
from .entity import HomeConnectEntity
PARALLEL_UPDATES = 0
EVENT_OPTIONS = ["confirmed", "off", "present"]

View File

@ -42,6 +42,7 @@ from .utils import get_dict_from_home_connect_error
_LOGGER = logging.getLogger(__name__)
PARALLEL_UPDATES = 1
SWITCHES = (
SwitchEntityDescription(

View File

@ -23,6 +23,8 @@ from .coordinator import HomeConnectApplianceData, HomeConnectConfigEntry
from .entity import HomeConnectEntity
from .utils import get_dict_from_home_connect_error
PARALLEL_UPDATES = 1
TIME_ENTITIES = (
TimeEntityDescription(
key=SettingKey.BSH_COMMON_ALARM_CLOCK,