Preventing REST sensor from being updated on restart

I have a REST endpoint that I’d like to consume that’s limited to 100 calls / month and needs to be configured so that it only updates on demand. This can be achieved by setting the scan_interval to some extremely high number, and then controlling the updates via homeassistant.update_entity, however this won’t prevent HASS from scanning the endpoint after a restart. This is an edge case, but I’d like to prevent unnecessary calls to the endpoint.

Is there a way to prevent a REST sensor (or really any other sensor with a scan_interval) from being updated on HASS restart? Alternatively, is there a way to configure it to update only after last_triggered + scan_interval has elapsed?

I’m working on adding this in multiscrape, which is a scraping component also capable of being a rest sensor :slight_smile:
After the restart, I assume, you want to see the values of before the restart, right?

Yes, that’s exactly the behaviour I’m looking for!