Update coordinator typing (3) [g-n] (#68463)

This commit is contained in:
Marc Mueller 2022-03-21 14:14:46 +01:00 committed by GitHub
parent 354fc4c1ae
commit 0d29b7cbb3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 25 additions and 29 deletions

View file

@ -179,13 +179,14 @@ async def async_setup_entry(
)
class LaunchLibrarySensor(CoordinatorEntity, SensorEntity):
class LaunchLibrarySensor(
CoordinatorEntity[DataUpdateCoordinator[LaunchLibraryData]], SensorEntity
):
"""Representation of the next launch sensors."""
_attr_attribution = "Data provided by Launch Library."
_next_event: Launch | Event | None = None
entity_description: LaunchLibrarySensorEntityDescription
coordinator: DataUpdateCoordinator[LaunchLibraryData]
def __init__(
self,