mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-06-19 16:46:29 +00:00
Fix sample update data coordinator (#1369)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
parent
468b661883
commit
1857d823e6
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user