code: async def refresh_data(self):
          
          queue = await self.get_queue()
          history = await self.get_history()
          totals = {}
          for k in history:
              if k[-4:] == 'size':
                  totals[k] = self._convert_size(history.get(k))
          self.queue = {**totals, **queue}
docs: Refresh the cached SABnzbd queue data