mirror of
https://github.com/home-assistant/core.git
synced 2025-08-05 05:35:11 +02:00
Set Shelly PARALLEL_UPDATES (#144070)
This commit is contained in:
@@ -42,6 +42,8 @@ from .utils import (
|
|||||||
is_rpc_momentary_input,
|
is_rpc_momentary_input,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
PARALLEL_UPDATES = 0
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True, kw_only=True)
|
@dataclass(frozen=True, kw_only=True)
|
||||||
class BlockBinarySensorDescription(
|
class BlockBinarySensorDescription(
|
||||||
|
@@ -32,6 +32,8 @@ from .const import DOMAIN, LOGGER, SHELLY_GAS_MODELS
|
|||||||
from .coordinator import ShellyBlockCoordinator, ShellyConfigEntry, ShellyRpcCoordinator
|
from .coordinator import ShellyBlockCoordinator, ShellyConfigEntry, ShellyRpcCoordinator
|
||||||
from .utils import get_device_entry_gen, get_rpc_key_ids
|
from .utils import get_device_entry_gen, get_rpc_key_ids
|
||||||
|
|
||||||
|
PARALLEL_UPDATES = 0
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True, kw_only=True)
|
@dataclass(frozen=True, kw_only=True)
|
||||||
class ShellyButtonDescription[
|
class ShellyButtonDescription[
|
||||||
|
@@ -51,6 +51,8 @@ from .utils import (
|
|||||||
is_rpc_thermostat_internal_actuator,
|
is_rpc_thermostat_internal_actuator,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
PARALLEL_UPDATES = 0
|
||||||
|
|
||||||
|
|
||||||
async def async_setup_entry(
|
async def async_setup_entry(
|
||||||
hass: HomeAssistant,
|
hass: HomeAssistant,
|
||||||
|
@@ -21,6 +21,8 @@ from .coordinator import ShellyBlockCoordinator, ShellyConfigEntry, ShellyRpcCoo
|
|||||||
from .entity import ShellyBlockEntity, ShellyRpcEntity
|
from .entity import ShellyBlockEntity, ShellyRpcEntity
|
||||||
from .utils import get_device_entry_gen, get_rpc_key_ids
|
from .utils import get_device_entry_gen, get_rpc_key_ids
|
||||||
|
|
||||||
|
PARALLEL_UPDATES = 0
|
||||||
|
|
||||||
|
|
||||||
async def async_setup_entry(
|
async def async_setup_entry(
|
||||||
hass: HomeAssistant,
|
hass: HomeAssistant,
|
||||||
|
@@ -38,6 +38,8 @@ from .utils import (
|
|||||||
is_rpc_momentary_input,
|
is_rpc_momentary_input,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
PARALLEL_UPDATES = 0
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True, kw_only=True)
|
@dataclass(frozen=True, kw_only=True)
|
||||||
class ShellyBlockEventDescription(EventEntityDescription):
|
class ShellyBlockEventDescription(EventEntityDescription):
|
||||||
|
@@ -49,6 +49,8 @@ from .utils import (
|
|||||||
percentage_to_brightness,
|
percentage_to_brightness,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
PARALLEL_UPDATES = 0
|
||||||
|
|
||||||
|
|
||||||
async def async_setup_entry(
|
async def async_setup_entry(
|
||||||
hass: HomeAssistant,
|
hass: HomeAssistant,
|
||||||
|
@@ -42,6 +42,8 @@ from .utils import (
|
|||||||
get_virtual_component_ids,
|
get_virtual_component_ids,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
PARALLEL_UPDATES = 0
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True, kw_only=True)
|
@dataclass(frozen=True, kw_only=True)
|
||||||
class BlockNumberDescription(BlockEntityDescription, NumberEntityDescription):
|
class BlockNumberDescription(BlockEntityDescription, NumberEntityDescription):
|
||||||
|
@@ -33,7 +33,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: done
|
reauthentication-flow: done
|
||||||
test-coverage: done
|
test-coverage: done
|
||||||
|
|
||||||
|
@@ -28,6 +28,8 @@ from .utils import (
|
|||||||
get_virtual_component_ids,
|
get_virtual_component_ids,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
PARALLEL_UPDATES = 0
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True, kw_only=True)
|
@dataclass(frozen=True, kw_only=True)
|
||||||
class RpcSelectDescription(RpcEntityDescription, SelectEntityDescription):
|
class RpcSelectDescription(RpcEntityDescription, SelectEntityDescription):
|
||||||
|
@@ -63,6 +63,8 @@ from .utils import (
|
|||||||
is_rpc_wifi_stations_disabled,
|
is_rpc_wifi_stations_disabled,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
PARALLEL_UPDATES = 0
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True, kw_only=True)
|
@dataclass(frozen=True, kw_only=True)
|
||||||
class BlockSensorDescription(BlockEntityDescription, SensorEntityDescription):
|
class BlockSensorDescription(BlockEntityDescription, SensorEntityDescription):
|
||||||
|
@@ -39,6 +39,8 @@ from .utils import (
|
|||||||
is_rpc_exclude_from_relay,
|
is_rpc_exclude_from_relay,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
PARALLEL_UPDATES = 0
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True, kw_only=True)
|
@dataclass(frozen=True, kw_only=True)
|
||||||
class BlockSwitchDescription(BlockEntityDescription, SwitchEntityDescription):
|
class BlockSwitchDescription(BlockEntityDescription, SwitchEntityDescription):
|
||||||
|
@@ -28,6 +28,8 @@ from .utils import (
|
|||||||
get_virtual_component_ids,
|
get_virtual_component_ids,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
PARALLEL_UPDATES = 0
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True, kw_only=True)
|
@dataclass(frozen=True, kw_only=True)
|
||||||
class RpcTextDescription(RpcEntityDescription, TextEntityDescription):
|
class RpcTextDescription(RpcEntityDescription, TextEntityDescription):
|
||||||
|
@@ -47,6 +47,8 @@ from .utils import get_device_entry_gen, get_release_url
|
|||||||
|
|
||||||
LOGGER = logging.getLogger(__name__)
|
LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
PARALLEL_UPDATES = 0
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True, kw_only=True)
|
@dataclass(frozen=True, kw_only=True)
|
||||||
class RpcUpdateDescription(RpcEntityDescription, UpdateEntityDescription):
|
class RpcUpdateDescription(RpcEntityDescription, UpdateEntityDescription):
|
||||||
|
@@ -25,6 +25,8 @@ from .entity import (
|
|||||||
)
|
)
|
||||||
from .utils import async_remove_shelly_entity, get_device_entry_gen
|
from .utils import async_remove_shelly_entity, get_device_entry_gen
|
||||||
|
|
||||||
|
PARALLEL_UPDATES = 0
|
||||||
|
|
||||||
|
|
||||||
@dataclass(kw_only=True, frozen=True)
|
@dataclass(kw_only=True, frozen=True)
|
||||||
class BlockValveDescription(BlockEntityDescription, ValveEntityDescription):
|
class BlockValveDescription(BlockEntityDescription, ValveEntityDescription):
|
||||||
|
Reference in New Issue
Block a user