mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 18:57:06 +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 . import RenaultConfigEntry
|
||||||
from .entity import RenaultDataEntity, RenaultDataEntityDescription
|
from .entity import RenaultDataEntity, RenaultDataEntityDescription
|
||||||
|
|
||||||
|
# Coordinator is used to centralize the data updates
|
||||||
|
PARALLEL_UPDATES = 0
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True, kw_only=True)
|
@dataclass(frozen=True, kw_only=True)
|
||||||
class RenaultBinarySensorEntityDescription(
|
class RenaultBinarySensorEntityDescription(
|
||||||
|
@ -13,6 +13,10 @@ from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
|||||||
from . import RenaultConfigEntry
|
from . import RenaultConfigEntry
|
||||||
from .entity import RenaultEntity
|
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)
|
@dataclass(frozen=True, kw_only=True)
|
||||||
class RenaultButtonEntityDescription(ButtonEntityDescription):
|
class RenaultButtonEntityDescription(ButtonEntityDescription):
|
||||||
|
@ -16,6 +16,9 @@ from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
|||||||
from . import RenaultConfigEntry
|
from . import RenaultConfigEntry
|
||||||
from .entity import RenaultDataEntity, RenaultDataEntityDescription
|
from .entity import RenaultDataEntity, RenaultDataEntityDescription
|
||||||
|
|
||||||
|
# Coordinator is used to centralize the data updates
|
||||||
|
PARALLEL_UPDATES = 0
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True, kw_only=True)
|
@dataclass(frozen=True, kw_only=True)
|
||||||
class RenaultTrackerEntityDescription(
|
class RenaultTrackerEntityDescription(
|
||||||
|
@ -7,5 +7,6 @@
|
|||||||
"integration_type": "hub",
|
"integration_type": "hub",
|
||||||
"iot_class": "cloud_polling",
|
"iot_class": "cloud_polling",
|
||||||
"loggers": ["renault_api"],
|
"loggers": ["renault_api"],
|
||||||
|
"quality_scale": "silver",
|
||||||
"requirements": ["renault-api==0.2.7"]
|
"requirements": ["renault-api==0.2.7"]
|
||||||
}
|
}
|
||||||
|
@ -28,7 +28,7 @@ rules:
|
|||||||
entity-unavailable: done
|
entity-unavailable: done
|
||||||
integration-owner: done
|
integration-owner: done
|
||||||
log-when-unavailable: done
|
log-when-unavailable: done
|
||||||
parallel-updates: todo
|
parallel-updates: done
|
||||||
reauthentication-flow: done
|
reauthentication-flow: done
|
||||||
test-coverage: done
|
test-coverage: done
|
||||||
# Gold
|
# Gold
|
||||||
|
@ -15,6 +15,10 @@ from homeassistant.helpers.typing import StateType
|
|||||||
from . import RenaultConfigEntry
|
from . import RenaultConfigEntry
|
||||||
from .entity import RenaultDataEntity, RenaultDataEntityDescription
|
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)
|
@dataclass(frozen=True, kw_only=True)
|
||||||
class RenaultSelectEntityDescription(
|
class RenaultSelectEntityDescription(
|
||||||
|
@ -40,6 +40,9 @@ from .coordinator import T
|
|||||||
from .entity import RenaultDataEntity, RenaultDataEntityDescription
|
from .entity import RenaultDataEntity, RenaultDataEntityDescription
|
||||||
from .renault_vehicle import RenaultVehicleProxy
|
from .renault_vehicle import RenaultVehicleProxy
|
||||||
|
|
||||||
|
# Coordinator is used to centralize the data updates
|
||||||
|
PARALLEL_UPDATES = 0
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True, kw_only=True)
|
@dataclass(frozen=True, kw_only=True)
|
||||||
class RenaultSensorEntityDescription(
|
class RenaultSensorEntityDescription(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user