Adjust get_latest_short_term_statistics query to be postgresql compatible (#70953)
Adjust get_latest_short_term_statistics query to be postgresql compatible (#70953)


toddeye/home-assistant,w1ll1am23/home-assistant,nkgilley/home-assistant,toddeye/home-assistant,mezz64/home-assistant,w1ll1am23/home-assistant,nkgilley/home-assistant,mezz64/home-assistant