'Connect to the Fritz!Box.'

def connect(self):

    self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    self.sock.settimeout(10)
    try:
        self.sock.connect((self.host, self.port))
        threading.Thread(target=self._listen).start()
    except socket.error as err:
        self.sock = None
        _LOGGER.error('Cannot    connect    to    %s    on    port    %s:    %s', self.host, self.port, err)
