nstrelow / ha_philips_android_tv

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

improve wol by refreshing api #47

Closed morph027 closed 3 years ago

morph027 commented 3 years ago

Even if my TV turns on and api is reachable, the check does not know about it as the property self._api_online does not necessarily get's updated (within HAs throttled main thread) while checking.

This change does enforce an update so the while loop does know about the changes.

nstrelow commented 3 years ago

Great, thanks a lot for the PR :D