Incorrect battery charge display

Unfortunately, I don’t know when the problem started, but for some time now, error messages related to “power_supply” have been appearing during the boot process, and the (Sway) desktop continuously shows 0% battery charge.

Micha