Shelly2.5 roller close cover after HA restart

I have 2 units of Shelly2.5 defined as rollers. One of them sometimes after HA restart, starts to close on its own. I have no idea why. I’m using ShellyForHass 0.1.9 and HA 0.113.3
Can someone point me to where can I check why it happens?
Both rollers have the exact same internal settings.

Are you using mqtt?

No, neither their cloud.

Apparently it was a race condition between an AppDaemon script I have and data the Shelly devices send upon connection to HA. I cannot sign the above but once I added a 60 sec delay to the init function of the script, the phenomenon has not returned.