Change the update_interval in an existing Coordinator?

I’ve got a component I’m building that uses the coordinator to setup polling of an API. I am fine with the API only getting polled every 10 minutes (or something else infrequent) until a certain time, which is part of the response from the API. I would like to parse the datetime in the API, and if it is within N minutes of now(), I’d like to bump the polling interval to every couple seconds.

Does anyone know if it’s possible to change the update_interval on a DataUpdateCoordinator that has already been created?

I believe you can set the update_interval attribute
in the update when extending the DataUpdateCoordinator class.

See example as an example, although this one is probably more complicated than you are asking for.

That example is exactly what I was looking for! Thank you much.