Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error obtaining entity_id for some entities #210

Open
alexyao2015 opened this issue Oct 8, 2021 · 0 comments
Open

Error obtaining entity_id for some entities #210

alexyao2015 opened this issue Oct 8, 2021 · 0 comments
Labels
bug Something isn't working confirmed We know what should be done to resolve the issue

Comments

@alexyao2015
Copy link
Member

alexyao2015 commented Oct 8, 2021

Describe the bug

Occasionally after ring periods of runtime, this error will crop up in the logs. Not sure if the causes or the exact method of reproduction, but this has happened more than once.

Restarts will typically fix the issue immediately.

Steps to Reproduce

Expected behavior

Logs

Hardware Info:

  • Architecture (Ex: x86, ARM):
  • Addon version (Ex: stable or dev):
    • Value of "tag_commit_or_branch" if using dev:
  • OS (Ex: Windows 10, Ubuntu Buster):
  • Hardware (Ex: PC, Raspberry Pi 1/2/3/Zero):

Additional context

2021-10-08 07:22:37,545 ERROR aiohttp.server -- Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/aiohttp/web_protocol.py", line 422, in _handle_request
    resp = await self._request_handler(request)
  File "/usr/local/lib/python3.9/site-packages/aiohttp/web_app.py", line 499, 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 498, in get_full_state
    "lights": await self.__async_get_all_lights(),
  File "/app/emulated_hue/api.py", line 938, in __async_get_all_lights
    entity_id = entity["entity_id"]
TypeError: 'NoneType' object is not subscriptable
@alexyao2015 alexyao2015 added the bug Something isn't working label Oct 8, 2021
@alexyao2015 alexyao2015 added the confirmed We know what should be done to resolve the issue label Oct 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working confirmed We know what should be done to resolve the issue
Projects
None yet
Development

No branches or pull requests

1 participant