Telnet in appdaemon is stuck on connection

Hello world, the python script is stuck on the line : = telnetlib.Telnet(self.HOST, self.PORT)

I’m using appdaemond to control a light by TELNET and in the initialize function, it freeze on this command and never reach the “end initialize”. Any idea?
The HOST and PORT are good :slight_smile:

the code in question :

def initialize(self):

    self.HOST = ""
    self.PORT = 3636 = telnetlib.Telnet(self.HOST,self.PORT)
    self.log("end initialize")