Skip to content

Commit

Permalink
Set PARALLEL_UPDATES in renault and bump quality scale (home-assistan…
Browse files Browse the repository at this point in the history
  • Loading branch information
epenet authored Dec 2, 2024
1 parent 5dc390b commit 8d14930
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 1 deletion.
3 changes: 3 additions & 0 deletions homeassistant/components/renault/binary_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
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(
Expand Down
4 changes: 4 additions & 0 deletions homeassistant/components/renault/button.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
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):
Expand Down
3 changes: 3 additions & 0 deletions homeassistant/components/renault/device_tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
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(
Expand Down
1 change: 1 addition & 0 deletions homeassistant/components/renault/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
"integration_type": "hub",
"iot_class": "cloud_polling",
"loggers": ["renault_api"],
"quality_scale": "silver",
"requirements": ["renault-api==0.2.7"]
}
2 changes: 1 addition & 1 deletion homeassistant/components/renault/quality_scale.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions homeassistant/components/renault/select.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
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(
Expand Down
3 changes: 3 additions & 0 deletions homeassistant/components/renault/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@
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(
Expand Down

0 comments on commit 8d14930

Please sign in to comment.