add delay when being in learning state

Signed-off-by: tinyladi <ladislas@weareleka.com>