Set PARALLEL_UPDATES in VeSync (#160272)

This commit is contained in:
cdnninja
2026-01-05 01:18:16 -07:00
committed by GitHub
parent fad817853f
commit 6aaa57f660
10 changed files with 19 additions and 1 deletions

View File

@@ -25,6 +25,8 @@ from .entity import VeSyncBaseEntity
_LOGGER = logging.getLogger(__name__)
PARALLEL_UPDATES = 0
@dataclass(frozen=True, kw_only=True)
class VeSyncBinarySensorEntityDescription(BinarySensorEntityDescription):

View File

@@ -47,6 +47,8 @@ VS_TO_HA_MODE_MAP = {
VS_FAN_MODE_NORMAL: VS_FAN_MODE_NORMAL,
}
PARALLEL_UPDATES = 1
async def async_setup_entry(
hass: HomeAssistant,

View File

@@ -38,6 +38,8 @@ VS_TO_HA_MODE_MAP = {
VS_HUMIDIFIER_MODE_SLEEP: MODE_SLEEP,
}
PARALLEL_UPDATES = 1
async def async_setup_entry(
hass: HomeAssistant,

View File

@@ -27,6 +27,8 @@ _LOGGER = logging.getLogger(__name__)
MAX_MIREDS = 370 # 1,000,000 divided by 2700 Kelvin = 370 Mireds
MIN_MIREDS = 153 # 1,000,000 divided by 6500 Kelvin = 153 Mireds
PARALLEL_UPDATES = 1
async def async_setup_entry(
hass: HomeAssistant,

View File

@@ -24,6 +24,8 @@ from .entity import VeSyncBaseEntity
_LOGGER = logging.getLogger(__name__)
PARALLEL_UPDATES = 1
@dataclass(frozen=True, kw_only=True)
class VeSyncNumberEntityDescription(NumberEntityDescription):

View File

@@ -37,7 +37,7 @@ rules:
comment: We should also incorporate super().available to go unavailable when the coordinator update fails
integration-owner: done
log-when-unavailable: todo
parallel-updates: todo
parallel-updates: done
reauthentication-flow: done
test-coverage: todo

View File

@@ -42,6 +42,8 @@ HA_TO_VS_HUMIDIFIER_NIGHT_LIGHT_LEVEL_MAP = {
v: k for k, v in VS_TO_HA_HUMIDIFIER_NIGHT_LIGHT_LEVEL_MAP.items()
}
PARALLEL_UPDATES = 1
@dataclass(frozen=True, kw_only=True)
class VeSyncSelectEntityDescription(SelectEntityDescription):

View File

@@ -36,6 +36,8 @@ from .entity import VeSyncBaseEntity
_LOGGER = logging.getLogger(__name__)
PARALLEL_UPDATES = 0
@dataclass(frozen=True, kw_only=True)
class VeSyncSensorEntityDescription(SensorEntityDescription):

View File

@@ -25,6 +25,8 @@ from .entity import VeSyncBaseEntity
_LOGGER = logging.getLogger(__name__)
PARALLEL_UPDATES = 1
@dataclass(frozen=True, kw_only=True)
class VeSyncSwitchEntityDescription(SwitchEntityDescription):

View File

@@ -12,6 +12,8 @@ from .const import VS_DEVICES, VS_DISCOVERY
from .coordinator import VesyncConfigEntry, VeSyncDataCoordinator
from .entity import VeSyncBaseEntity
PARALLEL_UPDATES = 0
async def async_setup_entry(
hass: HomeAssistant,