Shelly 2.5, ESPHome and NTC sensor

Hello
in ESPHome documentation there is a section of NTC sensor (https://esphome.io/components/sensor/ntc.html) where is described that the temperature sensor should be supply only during the temperature measurement.

“constant voltage supply to the NTC sensor causes it to heat up and therefore creates unreliable temperature values. So it’s recommended to only supply the NTC sensor (and voltage divider) during the actual measurement.”

I’m not getting what I should use in the program if I’m configuring a Shelly 2.5 for GPIO PIN (in the example there is D0).
Have you used this configuration? Can you post an example?

Thanks