-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[mqtt.generic] fix state description provider #8990
Conversation
Signed-off-by: Jan N. Klug <[email protected]>
I'm not sure about this, from the issue conversation it looks like the core is checking if the new state description is equal to the original description using |
Even the documentation says:
But the implemenation will always return |
@openhab/core-maintainers Can you comment here? It's true that the original state description is returned but the channel is managed by the provider, to the restriction is not fulfilled here. |
I agree on that this implementation of the
This is probably not possible because most of the bindings extend the |
Why would them always building a new dynamic state cause problems, that is exactly what you want them to do, no?
This would guarantee that the dynamic providers are not returning the originalStateDescription that is passed in as a parameter. Any returned non-null description after the reference comparison would be guaranteed to have been intentionally supplied by the provider. |
Yes, I was talking nonsense yesterday. I will do some test later this day. |
I submitted openhab/openhab-core#1817 to fix #8845. This PR will not be needed anymore. |
Fixes #8845
Signed-off-by: Jan N. Klug [email protected]