Taking a snapshot with ESP32 CAM and idle frame rate

I have an automation taking a snapshot from an ESP32 cam, and the snapshot doesn’t seem to be up to date (i.e. seems like it was taken a few seconds before). I suspect that it might be delayed because of the low idle frame rate.
Is my suspicion correct? How can I overcome this?

I can confirm that if I have stream open (viewing the camera in HA), the snapshot is up to date.
However, in the ESP logs its looks like it’s always grabbing a new image even when it’s serving an out of date one (I’m seeing the “Got Image: len=” log).

Any ideas?

Anyone? :frowning:

In case anyone is interested - turns out esphome will indeed return the outdated snapshot, but that will trigger a fresh snapshot the next time one is asked for.
I simply put a repeat around the snapshot action, and the 2nd image is the right one.