BasicUI does not map option values while PaperUI does #2729
Comments
This is not necessarily a flaw in the BasicUI, but could be solved in the core framework instead. We have two The GenericItem just takes the StateDescription from whatever provider is first in the list. Therefore the info from the second one gets lost. IMHO the fact that we can have multiple Of course, the In that way, not every UI needs to do the lookup for item -> linked channels -> channel types -> options on its own. @kaikreuzer, @cdjackson: WDYT? |
This would introduce a dependency from the items to the things, which we try to avoid. |
That would be fine by me too. |
@SJKA As far as I am aware, such a priority has been implemented meanwhile, right? |
With a service ranking set to -1 for ChannelStateDescriptionProvider and not set for GenericItemProvider. |
getStateDescription in GenericItem still returns the first of the list. Is the service ranking taken into account automatically when the list is built ? Which one will be returned first ? |
Yes, they are list that |
Ok, so no problem with the order. In my opinion, we should update the method Then to fix this issue, we just have to consider state options in the method If we are ok, I will work on a fix. |
PR submitted for your review. |
Fix issue #2729 Signed-off-by: Laurent Garnier <lg.hc@free.fr>
I can confirm that this got fixed with #3825. Thanks! |
I have a binding with one of the channels defined as below:
When channel has a value, i.e. 22, PaperUI displays the option value, as expected - "High delta GT8/GT9", but within BasicUI I see the actual value, that is 22 (same on iOS client).
Code can be found here.
The text was updated successfully, but these errors were encountered: