mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 08:47:57 +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.helpers.update_coordinator import DataUpdateCoordinator, UpdateFailed
|
||||
|
||||
T = TypeVar("T", bound=KamereonVehicleDataAttributes | None)
|
||||
T = TypeVar("T", bound=KamereonVehicleDataAttributes)
|
||||
|
||||
# We have potentially 7 coordinators per vehicle
|
||||
_PARALLEL_SEMAPHORE = asyncio.Semaphore(1)
|
||||
|
@ -59,6 +59,4 @@ class RenaultDataEntity(
|
||||
|
||||
def _get_data_attr(self, key: str) -> StateType:
|
||||
"""Return the attribute value from the coordinator data."""
|
||||
if self.coordinator.data is None:
|
||||
return None
|
||||
return cast(StateType, getattr(self.coordinator.data, key))
|
||||
|
Loading…
x
Reference in New Issue
Block a user