Edited .bashrc and now can't log in to Pi CLI

Hello all. My name is Shawn and I’m new to Allstar.
I have the Allstar image running on my Pi4. I added an UPS Pi Hat. This UPS is sold by SB Components and will power the Pi when main power fails. There is some Python code to drive the small display that shows battery strength. The UPS Hat talks to the Pi via I2C.
I wanted the display to show at boot up. To do this, the Python code can be called at boot. So, I added the call in .bashrc.
Now, when I log into the Pi, my password is accepted and then I’m logged right back out again. I log in and it logs me right back out. When I ssh to the Pi, I log in and it immediately logs me out and kills the session.
Is there a way to keep this from happening? Or, do I have start over with a fresh image?

Oh, is there a better way to have code start at boot rather than editing .bashrc?
Thank you in advance,

-Shawn

What are you logging into exactly ?

I am logging in as user ‘asl’ and the password I set up.

To what, the OS or Allmon etc ?

Here’s something to “try”. Instead of using ssh to get a login session I’ll ask if you can exec a command like:

ssh your-host date

If that works (returning the current date) then you may be able to move aside the problematic .bashrc with:

ssh your-host mv .bashrc .bashrc-SAVE