async def get_historic_data(self, n_data):
query = gql(<EOL>"""<STR_LIT>"""<EOL>% (self.home_id, n_data)<EOL>)<EOL>data = await self._tibber_control.execute(query)<EOL>if not data:<EOL><INDENT>_LOGGER.error("<STR_LIT>")<EOL>return<EOL><DEDENT>data = data["<STR_LIT>"]["<STR_LIT>"]["<STR_LIT>"]<EOL>if data is None:<EOL><INDENT>self._data = []<EOL>return<EOL><DEDENT>self._data = data["<STR_LIT>"]<EOL>
Get historic data.