eslavnov / pylips

Control Philips TVs (2015+) and Ambilight (+ Hue) through their reverse-engineered API (+ MQTT support!)
MIT License
342 stars 60 forks source link

added https, a new port and catch exceptions more broadly #122

Open FieserKiller opened 11 months ago

FieserKiller commented 11 months ago

My TV's (55PML9507) jointSPACE endpoint is https and on port 1926 so I made find_api_version() find it. Exceptions are catched more broadly because both json parser and requests lib threw multiple exceptions while in discovery (socket timeouts, json not parseable, etc.) which are all catched now.