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
pull/133265/head
Arie Catsman 2024-12-15 09:27:14 +01:00 committed by GitHub
parent 2117e35d53
commit 229a68dc73
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 10 additions and 0 deletions

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -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):