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

fix(battery): Fix {health} format replacement #3167

Merged
merged 6 commits into from
Apr 24, 2024

Conversation

kiriDevs
Copy link
Contributor

@kiriDevs kiriDevs commented Apr 24, 2024

Looks like I forgot to register the {health} replacement for the "default" (i.e. non-tooltip) replacements.

Also, some batteries report their {health} related data as energy_full and energy_full_design instead of charge_full and charge_full_design. This PR will also implements support for that.

For more information see the conversation below #3130


Marking as draft since

  • I haven't tested this yet (quick commit from the web editor)
  • there might actually be another / more issue(s) with {cycles} and {health} in format-alt

Issues reported by @nebulosa2007 under the original PR for {cycles} and {health} (#3130)

At least I hope I copy-pased it correctly
This is what happens when you copy-paste from GitHub actions
It's now *inconsistent* in the file, but clang-tidy should be happy, sooo...
@kiriDevs kiriDevs marked this pull request as ready for review April 24, 2024 13:01
@Alexays Alexays merged commit a597a99 into Alexays:master Apr 24, 2024
8 of 9 checks passed
@Alexays
Copy link
Owner

Alexays commented Apr 24, 2024

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants