jaruba / ha-samsungtv-tizen

📺 HomeAssistant - For Samsung TVs 2016+, Includes SmartThings API and Channel List Support
Apache License 2.0
288 stars 64 forks source link

"Coroutine 'SamsungTVDevice._gen_installed_app_list' was never awaited" warning #164

Open bogdanm opened 3 years ago

bogdanm commented 3 years ago

Hi, thanks for this integration! For me, it works much better than the official HomeAssistant samsungtv integration. However, I do have a problem with it. Every time I start HomeAssistant, I get this warning:

homeassistant    | /config/custom_components/samsungtv_tizen/media_player.py:703: RuntimeWarning: coroutine 'SamsungTVDevice._gen_installed_app_list' was never awaited
homeassistant    |   self._gen_installed_app_list()
homeassistant    | RuntimeWarning: Enable tracemalloc to get the object allocation traceback

The warning seems to be accompanied by a temporary "freeze" in the web interface (in the sense that I can see progress indicator, but no progress is being made in the UI), although I'm not yet 100% sure that these two events are related. The warning persisted after I configured the SmartThings integration (which I think works properly because I can see TV channel names in the UI).

TV: "Samsung 7 Series (50)" (UE50TU7172UXXH) TV software version: T-KTSU2DEUC-2013.3 ha-samsungtv-tizen version: v1.5.9 HomeAssistant version: core-2021.9.7 (running in Docker) with Python 3.9.7

adirgan commented 3 years ago

same here, for me is freeze and web interface not working

XPaine commented 3 years ago

same here

adirgan commented 3 years ago

Today home assistant froze completely, and I had to restart it for it to respond, and the last error it showed in the Log was the following:

WARNING (MainThread) [homeassistant.components.media_player] Updating samsungtv_tizen media_player took longer than the scheduled update interval 0:00:15

ThomasCr commented 1 month ago

Have the same SamsungTVDevice._gen_installed_app_list warning