Skip to content

fix plausible regression from d491a71a938135f9, made avty disable global#1985

Open
avg-I wants to merge 1 commit intoopenshwprojects:mainfrom
avg-I:fix-made-avty-disable-global
Open

fix plausible regression from d491a71a938135f9, made avty disable global#1985
avg-I wants to merge 1 commit intoopenshwprojects:mainfrom
avg-I:fix-made-avty-disable-global

Conversation

@avg-I
Copy link

@avg-I avg-I commented Feb 9, 2026

It's easier to reason about the change if we consider when the availability topic is not added.
Originally that was when isSensor && flagavty, that is, when an entity was considered to be a sensor and flag 35 was set.
After commit d491a71, it became isSensor || flagavty. That is, (A) if flag 35 is set then all entities are stripped of the availability topic and (B) even when the flag is not set, then any entity considered to be a sensor would also be stripped of the topic.
I am confident that (A) was the intent and (B) is a bug.
So, we should simply check only flagavty.

It's easier to reason about the change if we consider when the
availability topic is not added.
Originally that was when isSensor && flagavty, that is, when an entity
was considered to be a sensor and flag 35 was set.
After commit d491a71, it became isSensor || flagavty.
That is, (A) if flag 35 is set then all entities are stripped of the
availability topic and (B) even when the flag is not set, then any
entity considered to be a sensor would also be stripped of the topic.
I am confident that (A) was the intent and (B) is a bug.
So, we should simply check only flagavty.
@avg-I
Copy link
Author

avg-I commented Feb 9, 2026

The issue was also described and discussed here https://www.elektroda.com/rtvforum/topic4162760.html

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.

1 participant