Skip to content

Commit

Permalink
add awaiter
Browse files Browse the repository at this point in the history
  • Loading branch information
netsoft-ruidias committed Jun 22, 2022
1 parent 5511cb0 commit aae7c28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/precoscombustiveis/dgeg.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ async def getStation(self, id: str) -> Station:

async def testStation(self, id: str) -> bool:
"""Test if stationId exists."""
station = self.getStation(id)
station = await self.getStation(id)
_LOGGER.debug("station.name %s", station.name)
_LOGGER.debug("station.name %s", station.fuels)
_LOGGER.debug("result %s", (not station.name and not station.fuels))
Expand Down

0 comments on commit aae7c28

Please sign in to comment.