Closed rhayun closed 4 years ago
Hi, Awesome Thanks a-lot!
I tried the new code on my HA, keep getting these errors,
self._ws = websocket.WebSocketApp(wssaddr,sslopt={"cert_reqs": ssl.CERT_NONE}, header=headers, cookie="; ".join(["%s=%s" %(i, j) for i, j in cookies.items()]),
NameError: name 'ssl' is not defined
so I added the import SSL, but then I got this error: 2.
`self._ws = websocket.WebSocketApp(wssaddr,sslopt={"cert_reqs": ssl.CERT_NONE}, header=headers, cookie="; ".join(["%s=%s" %(i, j) for i, j in cookies.items()]),
TypeError: __init__() got an unexpected keyword argument 'sslopt'`
I tried the new code on my HA, keep getting these errors,
self._ws = websocket.WebSocketApp(wssaddr,sslopt={"cert_reqs": ssl.CERT_NONE}, header=headers, cookie="; ".join(["%s=%s" %(i, j) for i, j in cookies.items()]), NameError: name 'ssl' is not defined
so I added the import SSL, but then I got this error: 2.
`self._ws = websocket.WebSocketApp(wssaddr,sslopt={"cert_reqs": ssl.CERT_NONE}, header=headers, cookie="; ".join(["%s=%s" %(i, j) for i, j in cookies.items()]), TypeError: __init__() got an unexpected keyword argument 'sslopt'`
are you running HassOS?
yes
yes
I doubled check again with fresh new HassOS no problems exist, can you double-check perhaps there is updates for HassOS you didn't commit?
ok, after another restart, It worked!
its tested and working but i need someone to review this