utils.py: fix assert range with hour
utils.py: fix assert range with hour

`hour=23` (23 P.M.) will out of the `range(0, 23)`, which should be `range(0, 24)`.
espressif/esp-idf,espressif/esp-idf,espressif/esp-idf,espressif/esp-idf