slipx06 / sunsynk-power-flow-card

⚡A customizable Home Assistant card to emulate the Sunsynk System flow that's displayed on the Inverter screen.
MIT License
161 stars 48 forks source link

Back Button Android #450

Closed floschad closed 1 month ago

floschad commented 1 month ago

Is there an existing issue for this?

Current Behavior

When I push back button after I clicked a value to see details nothing happens, 2nd time App will close.

Steps To Reproduce

Tap on a value in the card to open details, then back button.

Expected behaviour

Normally when you push back button it will close the detail window in the App.

Card Version

4.38.0

Home Assistant Version

2024.5.5

Configuration

No response

Relevant log output

No response

slipx06 commented 1 month ago

Thanks I can confirm this behavior. Will try figure out how to fix. @Pho3niX90 any ideas how to modify the popup code

    static handlePopup(e, entityId) {
        if(!entityId)
            return;
        this._handleClick(e, {action: 'more-info'}, entityId);
    }
Pho3niX90 commented 1 month ago

It seems I cannot reproduce this, which android versions are you using, and which devices? @slipx06 @floschad

Pho3niX90 commented 1 month ago

After upgrading to 24.5.5, I experience the same. Will quickly test.

slipx06 commented 1 month ago

Not just Android. I can replicate in Chrome on Windows.