You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When shifting between two dropdown lists, connected via a shared tabview and using forced open on the dropdownlist chosen, behaviour is somewhat irratic. It seems that dropdown list object sort of inherits the 'mother' parent tabviews value and prevents "event":"changed" to be performed for precisely that value ?
At least it seems like it ,as first tab (tabview "val":0) won't send event changes for its 'own' "val":0 on the list. And for the second dropdown list its "val":1 that behaves like this.
Issue arises only when i use the force open command (which I need)
If you shift back and forth between the two tabs and everytime select one item on the list, you can see that no "event:changed" is send for "val":0 for "id":10 and "val":1 for "id":11 Only up/down events ??
If the "open:0" is removed from last service call's jsonl command (default behaviour), then all items on both dropdown lists will send "event:changed" mqtt state updates.
To Reproduce
Below jsonl for plate and automations.yaml for HA to reproduce issue.
Event handlers prevent the last value from being sent repeatedly. Normally the value is reset on the next down event.
But when sending a dropdown.open command there is no such reset of the previous value...
I pushed a possible fix for this issue which forces dropdown.open to always reset the last value.
This should fix the issue and always let the next touch be recognized.
Please test if this fixes your issue and I hope I did not break anything else in the process 🤣
Perform all steps below and tick them with [x]
Describe the bug
When shifting between two dropdown lists, connected via a shared tabview and using forced open on the dropdownlist chosen, behaviour is somewhat irratic. It seems that dropdown list object sort of inherits the 'mother' parent tabviews value and prevents
"event":"changed"
to be performed for precisely that value ?At least it seems like it ,as first tab (tabview
"val":0
) won't send event changes for its 'own'"val":0
on the list. And for the second dropdown list its"val":1
that behaves like this.Issue arises only when i use the force open command (which I need)
If you shift back and forth between the two tabs and everytime select one item on the list, you can see that no
"event:changed"
is send for "val":0 for"id":10
and"val":1
for"id":11
Only up/down events ??If the
"open:0"
is removed from last service call's jsonl command (default behaviour), then all items on both dropdown lists will send"event:changed"
mqtt state updates.To Reproduce
Below jsonl for plate and automations.yaml for HA to reproduce issue.
automation.yaml
Default openhasp mqtt topic used
Expected behavior
Expected behaviour would be that open command for dropdown list object would be identical with a physical touch on display to fold out list.
Screenshots or video
The text was updated successfully, but these errors were encountered: