docs: def _packet_timeout(self, packet, now):
          """ Check packet for timeout. """
          if now >= packet["timeout"]:
              # timed out
              return False
  
          if now >= packet["resend"]:
              # resend command
              self._send_command(packet)
              return False
  
          # keep packet
          return True