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

Remove battery icon #2

Open
modem7 opened this issue Oct 25, 2024 · 1 comment
Open

Remove battery icon #2

modem7 opened this issue Oct 25, 2024 · 1 comment

Comments

@modem7
Copy link

modem7 commented Oct 25, 2024

Heya,

Is there a way to globally state that you're not using a batter, but instead have the device plugged in?

Not quite sure which parts would need removing if only using USB power.

Thanks!

@trip5
Copy link
Owner

trip5 commented Oct 25, 2024

Of course. Actually that part is pretty easy. Once you remove the battery section from the sensor: section, trying to compile will throw errors and point out exactly which lines are pointing to a sensor that no longer exists.

The last few lines of the lambda are the part that draw the battery icon, so there's that too (but again, it will throw an error because it's pointing to a variable that no longer exists).

Or you could leave everything in and just comment the part that draws the battery so it doesn't show the icon. It doesn't hurt to leave it in if you change your mind later.

You may prefer that the device no longer sleeps, too, but that's up to you... leaving it in doesn't hurt either since you can just set the Home Assistant Helper for Disable Deep Sleep as always on.

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

No branches or pull requests

2 participants