Improve rdw
generic typing (#84643)
This commit is contained in:
parent
54ba09ec1c
commit
511f3335a1
2 changed files with 6 additions and 4 deletions
|
@ -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."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue