OpenClosedType is not a Command ?!?!#5515
Conversation
|
org.openhab.core.io.transport.modbus assumes that OpenClosedType can be a command: |
|
Modbus doesn't actually use it as a command, it has just included it in a generic "command to boolean" logic. The author probably was fooled by the fact that it implements But, that is what I find most likely, how to absolutely verify that this is the case is another matter. I don't really know how to do that. |
be6c9e4 to
c15c682
Compare
|
I have adjusted |
|
Change looks good to me. Do we first need to fix anything in the modbus add-on before this PR can be merged? |
|
It looks highly unlikely to have an impact, given that it's not treated as a command many other places in the system. It's just included in this generic "conversion method" But, ultimately, only somebody with intimate knowledge of the binding might be able to answer that. Who is "the authority" on the modbus binding? |
|
It must be removed from here, or there will be a compilation error: |
|
Unfortunately, this has "spread" to other bindings as well. This list isn't complete, these are the warnings I get when making the change in my "local core", but it only shows compilation errors from add-ons that I have opened in Eclipse. I guess there's no way to know the full extent but to first build core with this PR, and then build the add-ons until there are no more errors: |
Discussion at #5502 (comment)