mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 16:57:53 +00:00
Set parallel updates for SMLIGHT entities (#142455)
Set parallel updates for entities
This commit is contained in:
parent
3e4a077862
commit
056d26f13c
@ -22,6 +22,7 @@ from .const import SCAN_INTERNET_INTERVAL
|
||||
from .coordinator import SmConfigEntry, SmDataUpdateCoordinator
|
||||
from .entity import SmEntity
|
||||
|
||||
PARALLEL_UPDATES = 0
|
||||
SCAN_INTERVAL = SCAN_INTERNET_INTERVAL
|
||||
|
||||
|
||||
|
@ -23,6 +23,8 @@ from .const import DOMAIN
|
||||
from .coordinator import SmConfigEntry, SmDataUpdateCoordinator
|
||||
from .entity import SmEntity
|
||||
|
||||
PARALLEL_UPDATES = 1
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
||||
|
@ -25,6 +25,8 @@ from .const import UPTIME_DEVIATION
|
||||
from .coordinator import SmConfigEntry, SmDataUpdateCoordinator
|
||||
from .entity import SmEntity
|
||||
|
||||
PARALLEL_UPDATES = 0
|
||||
|
||||
|
||||
@dataclass(frozen=True, kw_only=True)
|
||||
class SmSensorEntityDescription(SensorEntityDescription):
|
||||
|
@ -22,6 +22,8 @@ from homeassistant.helpers.entity_platform import AddConfigEntryEntitiesCallback
|
||||
from .coordinator import SmConfigEntry, SmDataUpdateCoordinator
|
||||
from .entity import SmEntity
|
||||
|
||||
PARALLEL_UPDATES = 1
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
||||
|
@ -26,6 +26,8 @@ from .const import LOGGER
|
||||
from .coordinator import SmConfigEntry, SmFirmwareUpdateCoordinator, SmFwData
|
||||
from .entity import SmEntity
|
||||
|
||||
PARALLEL_UPDATES = 1
|
||||
|
||||
|
||||
def zigbee_latest_version(data: SmFwData, idx: int) -> Firmware | None:
|
||||
"""Get the latest Zigbee firmware version."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user