Add missing type for CoordinatorEntity in Brother sensor platform (#80197)

Add missing type for CoordinatorEntity
This commit is contained in:
Maciej Bieniek 2022-10-12 21:02:25 +02:00 committed by GitHub
parent fc32071562
commit 0daa5b55b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -395,7 +395,9 @@ async def async_setup_entry(
async_add_entities(sensors, False)
class BrotherPrinterSensor(CoordinatorEntity, SensorEntity):
class BrotherPrinterSensor(
CoordinatorEntity[BrotherDataUpdateCoordinator], SensorEntity
):
"""Define an Brother Printer sensor."""
_attr_has_entity_name = True