mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-11-16 14:30:28 +00:00
Fix sample update data coordinator (#1369)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
@@ -36,6 +36,7 @@ import logging
|
|||||||
import async_timeout
|
import async_timeout
|
||||||
|
|
||||||
from homeassistant.components.light import LightEntity
|
from homeassistant.components.light import LightEntity
|
||||||
|
from homeassistant.core import callback
|
||||||
from homeassistant.exceptions import ConfigEntryAuthFailed
|
from homeassistant.exceptions import ConfigEntryAuthFailed
|
||||||
from homeassistant.helpers.update_coordinator import (
|
from homeassistant.helpers.update_coordinator import (
|
||||||
CoordinatorEntity,
|
CoordinatorEntity,
|
||||||
@@ -84,7 +85,7 @@ class MyCoordinator(DataUpdateCoordinator):
|
|||||||
)
|
)
|
||||||
self.my_api = my_api
|
self.my_api = my_api
|
||||||
|
|
||||||
async def _async_update_data():
|
async def _async_update_data(self):
|
||||||
"""Fetch data from API endpoint.
|
"""Fetch data from API endpoint.
|
||||||
|
|
||||||
This is the place to pre-process the data to lookup tables
|
This is the place to pre-process the data to lookup tables
|
||||||
|
|||||||
Reference in New Issue
Block a user