I’m just trying to figure out whether the initial code you posted matches what you have in your project. Indentation matters as it indicates where code is in relation to other statements.
Assuming that your initial code snippet is incorrectly formatted, I believe you’re using timeout incorrectly. timeout is a signal, not a bool state (it does not return whether the timer has completed). Use this condition instead:
if chargeTimer.time_left <= 0: