mirror of
https://github.com/home-assistant/core.git
synced 2025-08-02 20:25:07 +02:00
set PARALLEL_UPDATES to 1 for enphase_envoy (#132373)
* set PARALLEL_UPDATES to 1 for enphase_envoy * move PARALLEL_UPDATES from _init_ to platform files. * Implement review feedback * set parrallel_update 0 for read-only platforms
This commit is contained in:
@@ -22,6 +22,8 @@ from .const import DOMAIN
|
||||
from .coordinator import EnphaseConfigEntry, EnphaseUpdateCoordinator
|
||||
from .entity import EnvoyBaseEntity
|
||||
|
||||
PARALLEL_UPDATES = 0
|
||||
|
||||
|
||||
@dataclass(frozen=True, kw_only=True)
|
||||
class EnvoyEnchargeBinarySensorEntityDescription(BinarySensorEntityDescription):
|
||||
|
@@ -25,6 +25,8 @@ from .const import DOMAIN
|
||||
from .coordinator import EnphaseConfigEntry, EnphaseUpdateCoordinator
|
||||
from .entity import EnvoyBaseEntity
|
||||
|
||||
PARALLEL_UPDATES = 1
|
||||
|
||||
|
||||
@dataclass(frozen=True, kw_only=True)
|
||||
class EnvoyRelayNumberEntityDescription(NumberEntityDescription):
|
||||
|
@@ -20,6 +20,8 @@ from .const import DOMAIN
|
||||
from .coordinator import EnphaseConfigEntry, EnphaseUpdateCoordinator
|
||||
from .entity import EnvoyBaseEntity
|
||||
|
||||
PARALLEL_UPDATES = 1
|
||||
|
||||
|
||||
@dataclass(frozen=True, kw_only=True)
|
||||
class EnvoyRelaySelectEntityDescription(SelectEntityDescription):
|
||||
|
@@ -59,6 +59,8 @@ _LOGGER = logging.getLogger(__name__)
|
||||
INVERTERS_KEY = "inverters"
|
||||
LAST_REPORTED_KEY = "last_reported"
|
||||
|
||||
PARALLEL_UPDATES = 0
|
||||
|
||||
|
||||
@dataclass(frozen=True, kw_only=True)
|
||||
class EnvoyInverterSensorEntityDescription(SensorEntityDescription):
|
||||
|
@@ -20,6 +20,8 @@ from .const import DOMAIN
|
||||
from .coordinator import EnphaseConfigEntry, EnphaseUpdateCoordinator
|
||||
from .entity import EnvoyBaseEntity
|
||||
|
||||
PARALLEL_UPDATES = 1
|
||||
|
||||
|
||||
@dataclass(frozen=True, kw_only=True)
|
||||
class EnvoyEnpowerSwitchEntityDescription(SwitchEntityDescription):
|
||||
|
Reference in New Issue
Block a user