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 platformspull/133265/head
parent
2117e35d53
commit
229a68dc73
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue