From aae7c284f8d49464b34c2558891ab1ed3a4aba1a Mon Sep 17 00:00:00 2001 From: Rui Dias Date: Wed, 22 Jun 2022 18:59:32 +0100 Subject: [PATCH] add awaiter --- custom_components/precoscombustiveis/dgeg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/precoscombustiveis/dgeg.py b/custom_components/precoscombustiveis/dgeg.py index 3939a67..89fabf5 100644 --- a/custom_components/precoscombustiveis/dgeg.py +++ b/custom_components/precoscombustiveis/dgeg.py @@ -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))