Yes I found the line where the time is set:
https://github.com/dmulcahey/zha-device-handlers/blob/bc1fa36cb5c702f226627d90dd5d78fd004828f1/zhaquirks/xiaomi/init.py#L323
I modified it to 5 seconds and it works, but the problem is that I have to change it every time I update Home Assistant