I’m getting the following error in the log (sometimes 2 or 3 times)
2017-07-29 12:59:27 ERROR (MainThread) [homeassistant.components.light] Error while setting up platform hue
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/homeassistant/helpers/entity_component.py", line 164, in _async_setup_platform
SLOW_SETUP_MAX_WAIT, loop=self.hass.loop)
File "/usr/lib/python3.6/asyncio/tasks.py", line 352, in wait_for
return fut.result()
File "/usr/lib/python3.6/asyncio/futures.py", line 244, in result
raise self._exception
File "/usr/lib/python3.6/concurrent/futures/thread.py", line 55, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/lib/python3.6/site-packages/homeassistant/components/light/hue.py", line 138, in setup_platform
allow_in_emulated_hue, allow_hue_groups)
File "/usr/lib/python3.6/site-packages/homeassistant/components/light/hue.py", line 258, in setup_bridge
update_lights()
File "/usr/lib/python3.6/site-packages/homeassistant/util/__init__.py", line 303, in wrapper
result = method(*args, **kwargs)
File "/usr/lib/python3.6/site-packages/homeassistant/util/__init__.py", line 303, in wrapper
result = method(*args, **kwargs)
File "/usr/lib/python3.6/site-packages/homeassistant/components/light/hue.py", line 182, in update_lights
api = bridge.get_api()
File "/usr/lib/python3.6/site-packages/phue.py", line 838, in get_api
return self.request('GET', '/api/' + self.username)
TypeError: must be str, not NoneType
It first appeared around the time I added the custom_ui by Andrey, so at first I thought they were related… but commenting out those references in customize.yaml doesn’t get rid of the error, so now I’m starting to think it was a coincidence and the real problem is caused by something else I’ve done.
I’m not adept at reading error codes. Does anyone have any idea what this might be?