mirror of
https://github.com/home-assistant/core.git
synced 2025-07-14 16:57:10 +00:00
Improve fitbit generic coordinator typing (#116562)
This commit is contained in:
parent
86f96db9b0
commit
2cb3a31db1
@ -20,7 +20,7 @@ UPDATE_INTERVAL: Final = datetime.timedelta(minutes=30)
|
|||||||
TIMEOUT = 10
|
TIMEOUT = 10
|
||||||
|
|
||||||
|
|
||||||
class FitbitDeviceCoordinator(DataUpdateCoordinator):
|
class FitbitDeviceCoordinator(DataUpdateCoordinator[dict[str, FitbitDevice]]):
|
||||||
"""Coordinator for fetching fitbit devices from the API."""
|
"""Coordinator for fetching fitbit devices from the API."""
|
||||||
|
|
||||||
def __init__(self, hass: HomeAssistant, api: FitbitApi) -> None:
|
def __init__(self, hass: HomeAssistant, api: FitbitApi) -> None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user