nstrelow / ha_philips_android_tv

Home Assistant custom component for the newer (2016+) Philips Android TVs
109 stars 28 forks source link

Stop calls to unsupported APIs after they failed a number of times #17

Open nstrelow opened 5 years ago

nstrelow commented 5 years ago

Currently some TVs just do not support certain functions.

With the newest changes, we catch the JSON errors and log to the code.

Even better would be to stop calling the API alltogether after it failed a number of times.

Best example is issue #15 , where /channeldb/tv/channelLists/all apparently throws an internal server error. It would be good to avoid those repeated calls to a non working API route.

Even better would be a compatability matrix of TVs and functions.