Fix sample update data coordinator (#1369)

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
Vova-SH 2022-06-16 19:42:56 +07:00 committed by GitHub
parent 468b661883
commit 1857d823e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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