MQTT switch: state topic time-out

Hello to all,
What the maximum delay before state_topic times out and consider that the command that has been sent failed? Is there a way to change this delay?
Thank you

There is no such thing as a “MQTT timeout”.
Furthermore, the state_topic is where the device should send its current state. The command_topic is used to send commands to the device.

Thank you for your feedback. Let me clarify the situation. Indeed it is not a matter of MQTT timeout. When command_topic payload is sent, the the gui of the entity (not beeing optimistic because of the presence of state_topic) is for instance set to On and will be set back to Off if state_topic does not receive the expected value then it will go back to its previous state. This may arise because the party sending back the value to state_topic takes to much time.