Refactor Tessie for future PR (#120406)
* Bump tessie-api * Refactor * revert bump * Fix cover * Apply suggestions from code review Co-authored-by: G Johansson <goran.johansson@shiftit.se> --------- Co-authored-by: G Johansson <goran.johansson@shiftit.se>
This commit is contained in:
parent
a8bf671663
commit
d4dc7d76d9
15 changed files with 92 additions and 71 deletions
|
@ -12,8 +12,8 @@ from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
|||
|
||||
from . import TessieConfigEntry
|
||||
from .const import TessieUpdateStatus
|
||||
from .coordinator import TessieStateUpdateCoordinator
|
||||
from .entity import TessieEntity
|
||||
from .models import TessieVehicleData
|
||||
|
||||
|
||||
async def async_setup_entry(
|
||||
|
@ -34,10 +34,10 @@ class TessieUpdateEntity(TessieEntity, UpdateEntity):
|
|||
|
||||
def __init__(
|
||||
self,
|
||||
coordinator: TessieStateUpdateCoordinator,
|
||||
vehicle: TessieVehicleData,
|
||||
) -> None:
|
||||
"""Initialize the Update."""
|
||||
super().__init__(coordinator, "update")
|
||||
super().__init__(vehicle, "update")
|
||||
|
||||
@property
|
||||
def supported_features(self) -> UpdateEntityFeature:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue