Improve rainbird generic typing (#84642)

This commit is contained in:
Marc Mueller 2022-12-27 21:17:20 +01:00 committed by GitHub
parent a06b1eaf69
commit 24a34b1739
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 17 additions and 13 deletions

View file

@ -113,7 +113,9 @@ async def async_setup_platform(
)
class RainBirdSwitch(CoordinatorEntity, SwitchEntity):
class RainBirdSwitch(
CoordinatorEntity[RainbirdUpdateCoordinator[States]], SwitchEntity
):
"""Representation of a Rain Bird switch."""
def __init__(