Clooos / Bubble-Card

Bubble Card is a minimalist card collection for Home Assistant with a nice pop-up touch.
MIT License
1.44k stars 39 forks source link

Separator sub-buttons cause haptic feedback loop on tap and never open "more-info". #601

Open aredon opened 6 days ago

aredon commented 6 days ago

Describe the bug
When tapping on a sensor entity in a separator card (not inside a popup) the haptic feedback on my phone begins to pulse rapidly. I assume some kind of loop is messed up here. More-info does not open and the app will sometimes freeze. What's odd is sometimes it will only pulse a few times and then work normally.

To Reproduce
Steps to reproduce the behavior:

  1. Create a separator with a sub button sensor entity
  2. Tap it
  3. Panic while your phone freaks out

Expected behavior
More info dialog

Screenshots
N/A

Informations (please complete the following information):

Clooos commented 6 days ago

Thank you for the feedback!

I did realized that but I was not able to find how to reproduce it, I will take a look at that!

Clooos commented 6 days ago

Damn I've just tried and I'm still unable to reproduce this issue.

aredon commented 6 days ago

So I'm wondering if it has to do with load/response times from home assistant. I can't get it to happen consistently but I have more luck when I'm on phone data rather than wifi. (but obviously no other cards do this)

Is the code for the haptic feedback basically loop until response received?

Edit: I think I can confirm this theory. I set my VPN to the other side of the planet and the haptic feedback got longer. So basically if we want to reproduce the cache might just need to be cleared.

Clooos commented 6 days ago

If I remember correctly no it's not, but this issue shouldn't be too difficult to fix, there is not too much code to check for that feature.

aredon commented 6 days ago

I put my phone in airplane mode and it's still not doing it. So I'm starting to lean more toward cache issue - as in - first load of those entities. But I really don't know.