Librem 14 battery not charging and system thinks battery is absent

Silly as it is, this solved it for me: BAT0 missing from /power_supply. Battery indicator shows no battery availble

Hopefully the problem never comes back, but if it does, this will be the first thing I attempt.