mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 02:07:09 +00:00
Set parallel_updates in pyLoad integration (#138897)
Set parallel_updates
This commit is contained in:
parent
5c8fa717bf
commit
e5c0183e0f
@ -18,6 +18,8 @@ from .const import DOMAIN
|
|||||||
from .coordinator import PyLoadConfigEntry
|
from .coordinator import PyLoadConfigEntry
|
||||||
from .entity import BasePyLoadEntity
|
from .entity import BasePyLoadEntity
|
||||||
|
|
||||||
|
PARALLEL_UPDATES = 1
|
||||||
|
|
||||||
|
|
||||||
@dataclass(kw_only=True, frozen=True)
|
@dataclass(kw_only=True, frozen=True)
|
||||||
class PyLoadButtonEntityDescription(ButtonEntityDescription):
|
class PyLoadButtonEntityDescription(ButtonEntityDescription):
|
||||||
|
@ -21,6 +21,8 @@ from .const import UNIT_DOWNLOADS
|
|||||||
from .coordinator import PyLoadConfigEntry, PyLoadData
|
from .coordinator import PyLoadConfigEntry, PyLoadData
|
||||||
from .entity import BasePyLoadEntity
|
from .entity import BasePyLoadEntity
|
||||||
|
|
||||||
|
PARALLEL_UPDATES = 0
|
||||||
|
|
||||||
|
|
||||||
class PyLoadSensorEntity(StrEnum):
|
class PyLoadSensorEntity(StrEnum):
|
||||||
"""pyLoad Sensor Entities."""
|
"""pyLoad Sensor Entities."""
|
||||||
|
@ -22,6 +22,8 @@ from .const import DOMAIN
|
|||||||
from .coordinator import PyLoadConfigEntry, PyLoadData
|
from .coordinator import PyLoadConfigEntry, PyLoadData
|
||||||
from .entity import BasePyLoadEntity
|
from .entity import BasePyLoadEntity
|
||||||
|
|
||||||
|
PARALLEL_UPDATES = 1
|
||||||
|
|
||||||
|
|
||||||
class PyLoadSwitch(StrEnum):
|
class PyLoadSwitch(StrEnum):
|
||||||
"""PyLoad Switch Entities."""
|
"""PyLoad Switch Entities."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user