Set Shelly PARALLEL_UPDATES (#144070)

This commit is contained in:
Shay Levy 2025-05-01 22:20:50 +03:00 committed by GitHub
parent 79f8bea48d
commit 71599b8e75
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
14 changed files with 27 additions and 1 deletions

View File

@ -42,6 +42,8 @@ from .utils import (
is_rpc_momentary_input,
)
PARALLEL_UPDATES = 0
@dataclass(frozen=True, kw_only=True)
class BlockBinarySensorDescription(

View File

@ -32,6 +32,8 @@ from .const import DOMAIN, LOGGER, SHELLY_GAS_MODELS
from .coordinator import ShellyBlockCoordinator, ShellyConfigEntry, ShellyRpcCoordinator
from .utils import get_device_entry_gen, get_rpc_key_ids
PARALLEL_UPDATES = 0
@dataclass(frozen=True, kw_only=True)
class ShellyButtonDescription[

View File

@ -51,6 +51,8 @@ from .utils import (
is_rpc_thermostat_internal_actuator,
)
PARALLEL_UPDATES = 0
async def async_setup_entry(
hass: HomeAssistant,

View File

@ -21,6 +21,8 @@ from .coordinator import ShellyBlockCoordinator, ShellyConfigEntry, ShellyRpcCoo
from .entity import ShellyBlockEntity, ShellyRpcEntity
from .utils import get_device_entry_gen, get_rpc_key_ids
PARALLEL_UPDATES = 0
async def async_setup_entry(
hass: HomeAssistant,

View File

@ -38,6 +38,8 @@ from .utils import (
is_rpc_momentary_input,
)
PARALLEL_UPDATES = 0
@dataclass(frozen=True, kw_only=True)
class ShellyBlockEventDescription(EventEntityDescription):

View File

@ -49,6 +49,8 @@ from .utils import (
percentage_to_brightness,
)
PARALLEL_UPDATES = 0
async def async_setup_entry(
hass: HomeAssistant,

View File

@ -42,6 +42,8 @@ from .utils import (
get_virtual_component_ids,
)
PARALLEL_UPDATES = 0
@dataclass(frozen=True, kw_only=True)
class BlockNumberDescription(BlockEntityDescription, NumberEntityDescription):

View File

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

View File

@ -28,6 +28,8 @@ from .utils import (
get_virtual_component_ids,
)
PARALLEL_UPDATES = 0
@dataclass(frozen=True, kw_only=True)
class RpcSelectDescription(RpcEntityDescription, SelectEntityDescription):

View File

@ -63,6 +63,8 @@ from .utils import (
is_rpc_wifi_stations_disabled,
)
PARALLEL_UPDATES = 0
@dataclass(frozen=True, kw_only=True)
class BlockSensorDescription(BlockEntityDescription, SensorEntityDescription):

View File

@ -39,6 +39,8 @@ from .utils import (
is_rpc_exclude_from_relay,
)
PARALLEL_UPDATES = 0
@dataclass(frozen=True, kw_only=True)
class BlockSwitchDescription(BlockEntityDescription, SwitchEntityDescription):

View File

@ -28,6 +28,8 @@ from .utils import (
get_virtual_component_ids,
)
PARALLEL_UPDATES = 0
@dataclass(frozen=True, kw_only=True)
class RpcTextDescription(RpcEntityDescription, TextEntityDescription):

View File

@ -47,6 +47,8 @@ from .utils import get_device_entry_gen, get_release_url
LOGGER = logging.getLogger(__name__)
PARALLEL_UPDATES = 0
@dataclass(frozen=True, kw_only=True)
class RpcUpdateDescription(RpcEntityDescription, UpdateEntityDescription):

View File

@ -25,6 +25,8 @@ from .entity import (
)
from .utils import async_remove_shelly_entity, get_device_entry_gen
PARALLEL_UPDATES = 0
@dataclass(kw_only=True, frozen=True)
class BlockValveDescription(BlockEntityDescription, ValveEntityDescription):