MQTT Generic - retained flag not working

Thank you for your implementation option, but it seems to me that it would be more correct to store the states of your things using openhub. Moreover, if both devices are completely rebooted, the ESP will boot up much faster and will have time to perform actions without oenhub knowing, but what should you do in this case?