mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
Add parallel updates to Home Connect (#139255)
This commit is contained in:
parent
7ba94a680d
commit
a3bc55f49b
@ -38,6 +38,8 @@ from .coordinator import (
|
|||||||
)
|
)
|
||||||
from .entity import HomeConnectEntity
|
from .entity import HomeConnectEntity
|
||||||
|
|
||||||
|
PARALLEL_UPDATES = 0
|
||||||
|
|
||||||
REFRIGERATION_DOOR_BOOLEAN_MAP = {
|
REFRIGERATION_DOOR_BOOLEAN_MAP = {
|
||||||
REFRIGERATION_STATUS_DOOR_CLOSED: False,
|
REFRIGERATION_STATUS_DOOR_CLOSED: False,
|
||||||
REFRIGERATION_STATUS_DOOR_OPEN: True,
|
REFRIGERATION_STATUS_DOOR_OPEN: True,
|
||||||
|
@ -18,6 +18,8 @@ from .coordinator import (
|
|||||||
from .entity import HomeConnectEntity
|
from .entity import HomeConnectEntity
|
||||||
from .utils import get_dict_from_home_connect_error
|
from .utils import get_dict_from_home_connect_error
|
||||||
|
|
||||||
|
PARALLEL_UPDATES = 1
|
||||||
|
|
||||||
|
|
||||||
class HomeConnectCommandButtonEntityDescription(ButtonEntityDescription):
|
class HomeConnectCommandButtonEntityDescription(ButtonEntityDescription):
|
||||||
"""Describes Home Connect button entity."""
|
"""Describes Home Connect button entity."""
|
||||||
|
@ -36,6 +36,8 @@ from .utils import get_dict_from_home_connect_error
|
|||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
PARALLEL_UPDATES = 1
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True, kw_only=True)
|
@dataclass(frozen=True, kw_only=True)
|
||||||
class HomeConnectLightEntityDescription(LightEntityDescription):
|
class HomeConnectLightEntityDescription(LightEntityDescription):
|
||||||
|
@ -30,6 +30,8 @@ from .utils import get_dict_from_home_connect_error
|
|||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
PARALLEL_UPDATES = 1
|
||||||
|
|
||||||
UNIT_MAP = {
|
UNIT_MAP = {
|
||||||
"seconds": UnitOfTime.SECONDS,
|
"seconds": UnitOfTime.SECONDS,
|
||||||
"ml": UnitOfVolume.MILLILITERS,
|
"ml": UnitOfVolume.MILLILITERS,
|
||||||
|
@ -50,6 +50,8 @@ from .coordinator import (
|
|||||||
from .entity import HomeConnectEntity, HomeConnectOptionEntity
|
from .entity import HomeConnectEntity, HomeConnectOptionEntity
|
||||||
from .utils import bsh_key_to_translation_key, get_dict_from_home_connect_error
|
from .utils import bsh_key_to_translation_key, get_dict_from_home_connect_error
|
||||||
|
|
||||||
|
PARALLEL_UPDATES = 1
|
||||||
|
|
||||||
FUNCTIONAL_LIGHT_COLOR_TEMPERATURE_ENUM = {
|
FUNCTIONAL_LIGHT_COLOR_TEMPERATURE_ENUM = {
|
||||||
bsh_key_to_translation_key(option): option
|
bsh_key_to_translation_key(option): option
|
||||||
for option in (
|
for option in (
|
||||||
|
@ -27,6 +27,8 @@ from .const import (
|
|||||||
from .coordinator import HomeConnectApplianceData, HomeConnectConfigEntry
|
from .coordinator import HomeConnectApplianceData, HomeConnectConfigEntry
|
||||||
from .entity import HomeConnectEntity
|
from .entity import HomeConnectEntity
|
||||||
|
|
||||||
|
PARALLEL_UPDATES = 0
|
||||||
|
|
||||||
EVENT_OPTIONS = ["confirmed", "off", "present"]
|
EVENT_OPTIONS = ["confirmed", "off", "present"]
|
||||||
|
|
||||||
|
|
||||||
|
@ -42,6 +42,7 @@ from .utils import get_dict_from_home_connect_error
|
|||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
PARALLEL_UPDATES = 1
|
||||||
|
|
||||||
SWITCHES = (
|
SWITCHES = (
|
||||||
SwitchEntityDescription(
|
SwitchEntityDescription(
|
||||||
|
@ -23,6 +23,8 @@ from .coordinator import HomeConnectApplianceData, HomeConnectConfigEntry
|
|||||||
from .entity import HomeConnectEntity
|
from .entity import HomeConnectEntity
|
||||||
from .utils import get_dict_from_home_connect_error
|
from .utils import get_dict_from_home_connect_error
|
||||||
|
|
||||||
|
PARALLEL_UPDATES = 1
|
||||||
|
|
||||||
TIME_ENTITIES = (
|
TIME_ENTITIES = (
|
||||||
TimeEntityDescription(
|
TimeEntityDescription(
|
||||||
key=SettingKey.BSH_COMMON_ALARM_CLOCK,
|
key=SettingKey.BSH_COMMON_ALARM_CLOCK,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user