mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 09:47:13 +00:00
Use DataUpdateCoordinator generic for data (#71479)
This commit is contained in:
parent
44d8f2f773
commit
b86f508ac8
@ -19,11 +19,9 @@ _LOGGER = logging.getLogger(__name__)
|
|||||||
UPDATE_INTERVAL = timedelta(minutes=1)
|
UPDATE_INTERVAL = timedelta(minutes=1)
|
||||||
|
|
||||||
|
|
||||||
class HistoryStatsUpdateCoordinator(DataUpdateCoordinator):
|
class HistoryStatsUpdateCoordinator(DataUpdateCoordinator[HistoryStatsState]):
|
||||||
"""DataUpdateCoordinator to gather data for a specific TPLink device."""
|
"""DataUpdateCoordinator to gather data for a specific TPLink device."""
|
||||||
|
|
||||||
data: HistoryStatsState
|
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
hass: HomeAssistant,
|
hass: HomeAssistant,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user