mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Improve rdw
generic typing (#84643)
This commit is contained in:
parent
54ba09ec1c
commit
511f3335a1
@ -71,7 +71,9 @@ async def async_setup_entry(
|
||||
)
|
||||
|
||||
|
||||
class RDWBinarySensorEntity(CoordinatorEntity, BinarySensorEntity):
|
||||
class RDWBinarySensorEntity(
|
||||
CoordinatorEntity[DataUpdateCoordinator[Vehicle]], BinarySensorEntity
|
||||
):
|
||||
"""Defines an RDW binary sensor."""
|
||||
|
||||
entity_description: RDWBinarySensorEntityDescription
|
||||
@ -80,7 +82,7 @@ class RDWBinarySensorEntity(CoordinatorEntity, BinarySensorEntity):
|
||||
def __init__(
|
||||
self,
|
||||
*,
|
||||
coordinator: DataUpdateCoordinator,
|
||||
coordinator: DataUpdateCoordinator[Vehicle],
|
||||
description: RDWBinarySensorEntityDescription,
|
||||
) -> None:
|
||||
"""Initialize RDW binary sensor."""
|
||||
|
@ -72,7 +72,7 @@ async def async_setup_entry(
|
||||
)
|
||||
|
||||
|
||||
class RDWSensorEntity(CoordinatorEntity, SensorEntity):
|
||||
class RDWSensorEntity(CoordinatorEntity[DataUpdateCoordinator[Vehicle]], SensorEntity):
|
||||
"""Defines an RDW sensor."""
|
||||
|
||||
entity_description: RDWSensorEntityDescription
|
||||
@ -81,7 +81,7 @@ class RDWSensorEntity(CoordinatorEntity, SensorEntity):
|
||||
def __init__(
|
||||
self,
|
||||
*,
|
||||
coordinator: DataUpdateCoordinator,
|
||||
coordinator: DataUpdateCoordinator[Vehicle],
|
||||
license_plate: str,
|
||||
description: RDWSensorEntityDescription,
|
||||
) -> None:
|
||||
|
Loading…
x
Reference in New Issue
Block a user