def onchange_handler(state, payload):# Set the state variable "new_time" to the new value, provided as a hh:mm string (in 24-hour format that includes leading zeros).state["new_time"] = payload
Assistant
Responses are generated using AI and may contain mistakes.