mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 16:57:53 +00:00
Set PARALLEL_UPDATES in renault and bump quality scale (#132047)
This commit is contained in:
parent
5dc390b6b9
commit
8d1493036a
@ -19,6 +19,9 @@ from homeassistant.helpers.typing import StateType
|
||||
from . import RenaultConfigEntry
|
||||
from .entity import RenaultDataEntity, RenaultDataEntityDescription
|
||||
|
||||
# Coordinator is used to centralize the data updates
|
||||
PARALLEL_UPDATES = 0
|
||||
|
||||
|
||||
@dataclass(frozen=True, kw_only=True)
|
||||
class RenaultBinarySensorEntityDescription(
|
||||
|
@ -13,6 +13,10 @@ from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
||||
from . import RenaultConfigEntry
|
||||
from .entity import RenaultEntity
|
||||
|
||||
# Coordinator is used to centralize the data updates
|
||||
# but renault servers are unreliable and it's safer to queue action calls
|
||||
PARALLEL_UPDATES = 1
|
||||
|
||||
|
||||
@dataclass(frozen=True, kw_only=True)
|
||||
class RenaultButtonEntityDescription(ButtonEntityDescription):
|
||||
|
@ -16,6 +16,9 @@ from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
||||
from . import RenaultConfigEntry
|
||||
from .entity import RenaultDataEntity, RenaultDataEntityDescription
|
||||
|
||||
# Coordinator is used to centralize the data updates
|
||||
PARALLEL_UPDATES = 0
|
||||
|
||||
|
||||
@dataclass(frozen=True, kw_only=True)
|
||||
class RenaultTrackerEntityDescription(
|
||||
|
@ -7,5 +7,6 @@
|
||||
"integration_type": "hub",
|
||||
"iot_class": "cloud_polling",
|
||||
"loggers": ["renault_api"],
|
||||
"quality_scale": "silver",
|
||||
"requirements": ["renault-api==0.2.7"]
|
||||
}
|
||||
|
@ -28,7 +28,7 @@ rules:
|
||||
entity-unavailable: done
|
||||
integration-owner: done
|
||||
log-when-unavailable: done
|
||||
parallel-updates: todo
|
||||
parallel-updates: done
|
||||
reauthentication-flow: done
|
||||
test-coverage: done
|
||||
# Gold
|
||||
|
@ -15,6 +15,10 @@ from homeassistant.helpers.typing import StateType
|
||||
from . import RenaultConfigEntry
|
||||
from .entity import RenaultDataEntity, RenaultDataEntityDescription
|
||||
|
||||
# Coordinator is used to centralize the data updates
|
||||
# but renault servers are unreliable and it's safer to queue action calls
|
||||
PARALLEL_UPDATES = 1
|
||||
|
||||
|
||||
@dataclass(frozen=True, kw_only=True)
|
||||
class RenaultSelectEntityDescription(
|
||||
|
@ -40,6 +40,9 @@ from .coordinator import T
|
||||
from .entity import RenaultDataEntity, RenaultDataEntityDescription
|
||||
from .renault_vehicle import RenaultVehicleProxy
|
||||
|
||||
# Coordinator is used to centralize the data updates
|
||||
PARALLEL_UPDATES = 0
|
||||
|
||||
|
||||
@dataclass(frozen=True, kw_only=True)
|
||||
class RenaultSensorEntityDescription(
|
||||
|
Loading…
x
Reference in New Issue
Block a user