Telnet in appdaemon is stuck on connection

Hello world, the python script is stuck on the line :
self.tn = 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 = "192.168.137.1"
    self.PORT = 3636
    self.tn = telnetlib.Telnet(self.HOST,self.PORT)
    self.tn.close()
    self.log("end initialize")