Skip to content

Conversation

@AlCalzone
Copy link
Contributor

Currently whenever the library receives an unknown event, it raises a KeyError, which causes the HA integration to restart:
#1329 (comment)

This seems to have been intentional, but is a bit concerning.

This PR changes that behavior so we now log and stop processing the events instead.

@MartinHjelmare MartinHjelmare changed the title when receiving an unknown event, log instead of raising KeyError Log when receiving an unknown event, instead of raising KeyError Jan 2, 2026
@MartinHjelmare MartinHjelmare marked this pull request as draft January 2, 2026 15:27
@AlCalzone AlCalzone marked this pull request as ready for review January 5, 2026 20:15
Copy link
Contributor

@MartinHjelmare MartinHjelmare left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@MartinHjelmare MartinHjelmare merged commit 4626b98 into home-assistant-libs:main Jan 6, 2026
5 checks passed
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