mirror of
https://github.com/home-assistant/core.git
synced 2026-09-04 02:34:40 -05:00
Cleanup unused renault base entity method (#167643)
This commit is contained in:
@@ -3,12 +3,10 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from dataclasses import dataclass
|
||||
from typing import cast
|
||||
|
||||
from renault_api.kamereon.models import KamereonVehicleDataAttributes
|
||||
|
||||
from homeassistant.helpers.entity import Entity, EntityDescription
|
||||
from homeassistant.helpers.typing import StateType
|
||||
from homeassistant.helpers.update_coordinator import CoordinatorEntity
|
||||
|
||||
from .coordinator import RenaultDataUpdateCoordinator
|
||||
@@ -54,10 +52,6 @@ class RenaultDataEntity[T: KamereonVehicleDataAttributes](
|
||||
super().__init__(vehicle.coordinators[description.coordinator])
|
||||
RenaultEntity.__init__(self, vehicle, description)
|
||||
|
||||
def _get_data_attr(self, key: str) -> StateType:
|
||||
"""Return the attribute value from the coordinator data."""
|
||||
return cast(StateType, getattr(self.coordinator.data, key))
|
||||
|
||||
@property
|
||||
def assumed_state(self) -> bool:
|
||||
"""Return True if unable to access real state of the entity."""
|
||||
|
||||
Reference in New Issue
Block a user