I set up the energy dashboard recently. As I live in a rented apartment I don’t have solar panels or a battery. But in the graphs for Electrical usage they show in the legend:
But I didn’t set them in the config:
Die could I get them removed from the legend?
If it's there sounds like a bug, maybe be good to report that at the frontend repo.
I did create an issue there.
leaving the link here if someone else looks for it Energy Dashboard shows Solar consumed and Battery consumed in Electricity usage · Issue #53019 · home-assistant/frontend · GitHub
It is fixed in 2026.7.2 after I installed it today