Thanks for the reply @Bobby_Nobble
I have found the following:
if i do not expose any devices the server runs fine.
If I try to expose a light I get the following error in the log files
2017-08-03 19:12:44 INFO (MainThread) [homeassistant.components.http] Serving /api/root/lights to 192.168.1.61 (auth: True)
2017-08-03 19:12:44 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File “/usr/lib/python3.6/site-packages/aiohttp/web_protocol.py”, line 422, in start
resp = yield from self._request_handler(request)
File “/usr/lib/python3.6/site-packages/aiohttp/web.py”, line 306, in _handle
resp = yield from handler(request)
File “/usr/lib/python3.6/asyncio/coroutines.py”, line 213, in coro
res = yield from res
File “/usr/lib/python3.6/asyncio/coroutines.py”, line 213, in coro
res = yield from res
File “/usr/lib/python3.6/site-packages/homeassistant/components/http/init.py”, line 421, in handle
result = handler(request, **request.match_info)
File “/usr/lib/python3.6/site-packages/homeassistant/components/emulated_hue/hue_api.py”, line 78, in get
number = self.config.entity_id_to_number(entity.entity_id)
File “/usr/lib/python3.6/site-packages/homeassistant/components/emulated_hue/init.py”, line 196, in entity_id_to_number
number = str(max(int(k) for k in self.numbers) + 1)
ValueError: max() arg is an empty sequence