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

Guard for unexpected ID v1 #72

Merged
merged 1 commit into from
Oct 5, 2021
Merged

Guard for unexpected ID v1 #72

merged 1 commit into from
Oct 5, 2021

Conversation

balloob
Copy link
Collaborator

@balloob balloob commented Oct 5, 2021

Guard for id_v1 that have no /

2021-10-04 21:05:57 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/home/paulus/dev/hass/core/homeassistant/components/hue/bridge.py", line 249, in _subscribe_events
    async for updated_object in self.api.listen_events():
  File "/home/paulus/dev/hass/core/venv/lib/python3.9/site-packages/aiohue/bridge.py", line 212, in listen_events
    item_type = event_data["id_v1"].split("/", 2)[1]
IndexError: list index out of range

@frenck frenck merged commit 12d4b12 into master Oct 5, 2021
@frenck frenck deleted the guard-bad-id-v1 branch October 5, 2021 05:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants