async def get_data(self):
try:<EOL><INDENT>with async_timeout.timeout(<NUM_LIT:5>, loop=self._loop):<EOL><INDENT>response = await self._session.get(self.url)<EOL><DEDENT>_LOGGER.debug(<EOL>"<STR_LIT>", response.status)<EOL>self.data = await response.json()<EOL>_LOGGER.debug(self.data)<EOL><DEDENT>except (asyncio.TimeoutError, aiohttp.ClientError):<EOL><INDENT>_LOGGER.error("<STR_LIT>")<EOL>self.data = None<EOL>raise exceptions.VolkszaehlerApiConnectionError()<EOL><DEDENT>self.average = self.data['<STR_LIT:data>']['<STR_LIT>']<EOL>self.max = self.data['<STR_LIT:data>']['<STR_LIT>'][<NUM_LIT:1>]<EOL>self.min = self.data['<STR_LIT:data>']['<STR_LIT>'][<NUM_LIT:1>]<EOL>self.consumption = self.data['<STR_LIT:data>']['<STR_LIT>']<EOL>self.tuples = self.data['<STR_LIT:data>']['<STR_LIT>']<EOL>
Retrieve the data.