Add get_tracker to await

This commit is contained in:
2021-04-10 12:05:38 +02:00
parent 1e21de655f
commit f72481236d
4 changed files with 8 additions and 8 deletions

View File

@@ -21,7 +21,7 @@ async def async_setup_entry(hass, config_entry, async_add_entities): # pylint: d
if token is None:
return False
trackers = GeoRideApi.get_trackers(token)
trackers = await GeoRideApi.get_trackers(token)
odometer_switch_entities = []
for tracker in trackers: