diff --git a/docs/integration_fetching_data.md b/docs/integration_fetching_data.md index 05d540d4..5f379c5a 100644 --- a/docs/integration_fetching_data.md +++ b/docs/integration_fetching_data.md @@ -36,6 +36,7 @@ import logging import async_timeout from homeassistant.components.light import LightEntity +from homeassistant.core import callback from homeassistant.exceptions import ConfigEntryAuthFailed from homeassistant.helpers.update_coordinator import ( CoordinatorEntity, @@ -84,7 +85,7 @@ class MyCoordinator(DataUpdateCoordinator): ) self.my_api = my_api - async def _async_update_data(): + async def _async_update_data(self): """Fetch data from API endpoint. This is the place to pre-process the data to lookup tables