mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Cleanup dead code in renault (#132172)
This commit is contained in:
parent
af5574f71c
commit
76ba3afeae
@ -18,7 +18,7 @@ from renault_api.kamereon.models import KamereonVehicleDataAttributes
|
|||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
from homeassistant.helpers.update_coordinator import DataUpdateCoordinator, UpdateFailed
|
from homeassistant.helpers.update_coordinator import DataUpdateCoordinator, UpdateFailed
|
||||||
|
|
||||||
T = TypeVar("T", bound=KamereonVehicleDataAttributes | None)
|
T = TypeVar("T", bound=KamereonVehicleDataAttributes)
|
||||||
|
|
||||||
# We have potentially 7 coordinators per vehicle
|
# We have potentially 7 coordinators per vehicle
|
||||||
_PARALLEL_SEMAPHORE = asyncio.Semaphore(1)
|
_PARALLEL_SEMAPHORE = asyncio.Semaphore(1)
|
||||||
|
@ -59,6 +59,4 @@ class RenaultDataEntity(
|
|||||||
|
|
||||||
def _get_data_attr(self, key: str) -> StateType:
|
def _get_data_attr(self, key: str) -> StateType:
|
||||||
"""Return the attribute value from the coordinator data."""
|
"""Return the attribute value from the coordinator data."""
|
||||||
if self.coordinator.data is None:
|
|
||||||
return None
|
|
||||||
return cast(StateType, getattr(self.coordinator.data, key))
|
return cast(StateType, getattr(self.coordinator.data, key))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user