Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no decimals in the secondary info in "individual1" [BUG] #332

Closed
4 tasks done
cpohli opened this issue Jul 25, 2023 · 2 comments · Fixed by #334
Closed
4 tasks done

no decimals in the secondary info in "individual1" [BUG] #332

cpohli opened this issue Jul 25, 2023 · 2 comments · Fixed by #334
Labels
bug Something isn't working

Comments

@cpohli
Copy link

cpohli commented Jul 25, 2023

Describe the bug
The "individual1" (indivudal2 not tested) does not show decimals in the secondary info.
Despite configured via "decimals: 1" or "decimals: 2". Always 0 decimals are shown.

To Reproduce
Steps to reproduce the behavior:

          individual1:
            entity: sensor.sma_wallbox_aktuell_kw
            icon: mdi:car-electric
            color: '#80b8ff'
            name: Wallbox
            color_icon: false
            secondary_info:
              entity: sensor.sma_wallbox_daily_kwh
              unit_of_measurement: "kWh"
              decimals: 1
            display_zero: true

If i copy the secondary info to on of the others (solar or home etc. it is displayed correctly.

Expected behavior
Show rounded value with 1 decimal

Screenshots
in the attached screenshot i copied the secondary sensor from "solar" to "wallbox".
Both are configued as:

            secondary_info:
              entity: sensor.solar_daily_kwh
              unit_of_measurement: "kWh"
              decimals: 1

Please make sure all of this applies and check the checkboxes, by writing "X" inside of them.

  • I understand that this is a channel for reporting bugs, not a support forum (If you need help configuring the card, go to: Discussions).

  • I have the latest version of the card installed.

  • I have cleared my browser cache after installing, updating and configuring the card.

  • The issue is not related to the UI-Editor not being rendered: "s.entries is not a function". This is a known bug, and is caused by Card Mod. Check the warning this readme section for more information on how to fix it.

SCR-20230725-jzcz
@cpohli cpohli added the bug Something isn't working label Jul 25, 2023
@flixlix flixlix linked a pull request Jul 25, 2023 that will close this issue
@flixlix
Copy link
Owner

flixlix commented Jul 25, 2023

Fixed in version 0.1.7! 🥳

@cpohli
Copy link
Author

cpohli commented Jul 25, 2023

Oh man,
that was like the fastest bug fix ever! :-)

Works like a charm now. Thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants