mvdwetering / huesyncbox

Custom integration for Home Assistant to control the Philips Hue Play HDMI Sync Box 4K or 8K
Apache License 2.0
113 stars 8 forks source link

IndexError: list index out of range #4

Closed insanelysick closed 4 years ago

insanelysick commented 4 years ago

Just installed this via HACS and after restarting and connecting this shows in the error log. Any ideas?

Traceback (most recent call last): File "/config/custom_components/huesyncbox/huesyncbox.py", line 34, in async_setup await self.async_update_registered_device_info() # Info might have changed while HA was not running File "/config/custom_components/huesyncbox/huesyncbox.py", line 81, in async_update_registered_device_info devices[0].id, IndexError: list index out of range

Thanks

insanelysick commented 4 years ago

Just a quick update, I commented out "await self.async_update_registered_device_info()" in huesyncbox.py and its now working correctly.

mvdwetering commented 4 years ago

Ow, I see. That only works when you already have a box installed. After building this I did not test with setting up my box again from scratch. Lets get that fixed

mvdwetering commented 4 years ago

This should be fixed in v1.7