Keep a power bank running with a low-draw gadget
Recognize automatic shutoff on a small USB-powered device.

Set up the comparison
Run the device straight from a wall adapter and record whether it works continuously for 20 minutes. Then run the same device from a fully charged bank with the same cable. Note whether the bank display goes dark soon after the gadget reaches idle.
Run the check
Check the manual for a low-current or trickle mode and how long it stays active. Start that mode with the device already connected, then wait past the original cutoff. Confirm it still supplies power after the gadget drops back to idle.
What I would choose
I would choose a bank with documented low-current support for intermittent sensors or small lights. For overnight use, test the full interval while supervised and use a source designed for continuous output if the bank automatically leaves that mode.