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

Patch ghost events from button and relative_rotary resources #377

Merged

Conversation

idekker
Copy link
Contributor

@idekker idekker commented Jul 20, 2024

I think this is not a proper fix as it is now dropping the event from button resources when button or button.button_report (or relative_rotary or relative_rotary.rotary_report for relative_rotary resources) are absent, while there might be other changes in the event that are relevant upstream. Since there was already code to drop the events, I expect the additional condition isn't going to hurt functionality. This should at least make the problem go away.

@idekker
Copy link
Contributor Author

idekker commented Jul 21, 2024

Verified by comparing the behavior of my production setup to that of a development setup with custom aiohue.

@idekker
Copy link
Contributor Author

idekker commented Jul 22, 2024 via email

@marcelveldt
Copy link
Collaborator

Yeah you're right - I was not fully awake.

As there is no real clean way to do this otherwise, lets just do it this way.
The real fix would be that Signify just differentiaties between state changes and device (stateless) events.

Copy link
Collaborator

@marcelveldt marcelveldt left a comment

Choose a reason for hiding this comment

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

Thanks!

@marcelveldt marcelveldt merged commit f1c034b into home-assistant-libs:main Jul 26, 2024
3 of 4 checks passed
@Robbe-B
Copy link

Robbe-B commented Jul 31, 2024

This seems to finally fix the ghost events after an update of the hub.
Many thanks for this, now we can enable auto-update again !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants