Skip to content

Fix light Websocket events#8191

Merged
manup merged 1 commit into
dresden-elektronik:masterfrom
manup:fix_light_events
Apr 29, 2025
Merged

Fix light Websocket events#8191
manup merged 1 commit into
dresden-elektronik:masterfrom
manup:fix_light_events

Conversation

@manup

@manup manup commented Apr 28, 2025

Copy link
Copy Markdown
Member

Similar treatment as in #8189

This PR will only emit Websocket events for the objects attr, state, config, etc. if the internal event for it originates such an item. It prevents extra events like config object when just an attr object should be send via Websocket.

Clearing the push flags happens now after lightToMap() is called to clear only items which fit the internal event suffix. I prefer to let lightToMap() to not have this logic. The check group event is also emitted outside lightToMap() now.

Similar treatment as in dresden-elektronik#8189

This PR will only emit Websocket events for the objects attr, state, config, etc. if the internal event for it originates such an item. It prevents extra events like config object when just an attr object should be send via Websocket.

Clearing the push flags happens after lightToMap() was called to clear only items which fit the internal event suffix (and I prefer to let lightToMap() to not have this logic). The check group event is also emitted outside lightToMap() now.
@manup manup added the Fix label Apr 28, 2025
@manup manup added this to the v2.30.0-beta milestone Apr 28, 2025
@manup
manup merged commit 8a7e0bf into dresden-elektronik:master Apr 29, 2025
@manup
manup deleted the fix_light_events branch April 29, 2025 12:43
manup added a commit that referenced this pull request Apr 29, 2025
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.

1 participant