Hey,
since Homeassistant 2023.11.1 the AddOn Emulated Hue (dev) is no more working
snip*****
TypeError: ‘NoneType’ object is not subscriptable
2023-11-23 15:16:14,936 DEBUG emulated_hue.discovery – Serving SSDP discovery info to (‘192.168.130.22’, 38687)
2023-11-23 15:16:14,937 DEBUG emulated_hue.discovery – Serving SSDP discovery info to (‘192.168.130.22’, 38687)
2023-11-23 15:16:14,938 DEBUG emulated_hue.discovery – Serving SSDP discovery info to (‘192.168.130.22’, 38687)
2023-11-23 15:16:14,938 DEBUG emulated_hue.discovery – Serving SSDP discovery info to (‘192.168.130.22’, 38687)
2023-11-23 15:16:15,028 DEBUG emulated_hue.api – [192.168.130.62] GET /api/aBe921E9Ce79fD5740952CdBf37e1D4C9C002fab/
2023-11-23 15:16:15,034 ERROR aiohttp.server – Error handling request
Traceback (most recent call last):
File “/usr/local/lib/python3.11/site-packages/aiohttp/web_protocol.py”, line 433, in _handle_request
resp = await request_handler(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/site-packages/aiohttp/web_app.py”, line 504, in _handle
resp = await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File “/app/emulated_hue/api.py”, line 92, in wrapped_func
return await func(cls, request)
^^^^^^^^^^^^^^^^^^^^^^^^
File “/app/emulated_hue/api.py”, line 499, in get_full_state
“lights”: await self.__async_get_all_lights(),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/app/emulated_hue/api.py”, line 965, in __async_get_all_lights
result[light_id] = await self.__async_entity_to_hue(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/app/emulated_hue/api.py”, line 803, in __async_entity_to_hue
latest_hue = entity_attr.get(const.HASS_ATTR_HS_COLOR, [0, 0])[0]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^
TypeError: ‘NoneType’ object is not subscriptable
2023-11-23 15:16:20,102 DEBUG emulated_hue.api – [192.168.130.62] GET /api/aBe921E9Ce79fD5740952CdBf37e1D4C9C002fab/
2023-11-23 15:16:20,106 ERROR aiohttp.server – Error handling request
Traceback (most recent call last):
File “/usr/local/lib/python3.11/site-packages/aiohttp/web_protocol.py”, line 433, in _handle_request
resp = await request_handler(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/site-packages/aiohttp/web_app.py”, line 504, in _handle
resp = await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File “/app/emulated_hue/api.py”, line 92, in wrapped_func
return await func(cls, request)
^^^^^^^^^^^^^^^^^^^^^^^^
File “/app/emulated_hue/api.py”, line 499, in get_full_state
“lights”: await self.__async_get_all_lights(),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/app/emulated_hue/api.py”, line 965, in __async_get_all_lights
result[light_id] = await self.__async_entity_to_hue(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/app/emulated_hue/api.py”, line 803, in __async_entity_to_hue
latest_hue = entity_attr.get(const.HASS_ATTR_HS_COLOR, [0, 0])[0]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^
TypeError: ‘NoneType’ object is not subscriptable
2023-11-23 15:16:25,195 DEBUG emulated_hue.api – [192.168.130.62] GET /api/aBe921E9Ce79fD5740952CdBf37e1D4C9C002fab/
2023-11-23 15:16:25,200 ERROR aiohttp.server – Error handling request
Traceback (most recent call last):
File “/usr/local/lib/python3.11/site-packages/aiohttp/web_protocol.py”, line 433, in _handle_request
resp = await request_handler(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/site-packages/aiohttp/web_app.py”, line 504, in _handle
resp = await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File “/app/emulated_hue/api.py”, line 92, in wrapped_func
return await func(cls, request)
^^^^^^^^^^^^^^^^^^^^^^^^
File “/app/emulated_hue/api.py”, line 499, in get_full_state
“lights”: await self.__async_get_all_lights(),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/app/emulated_hue/api.py”, line 965, in __async_get_all_lights
result[light_id] = await self.__async_entity_to_hue(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/app/emulated_hue/api.py”, line 803, in __async_entity_to_hue
latest_hue = entity_attr.get(const.HASS_ATTR_HS_COLOR, [0, 0])[0]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^
TypeError: ‘NoneType’ object is not subscriptable
snip****