Disable integration through yaml

I’m having a integration that fail to load almost every time I restart Home assistant.

If I disable it and enable it again it loads as it should.

Can I disable and enable it again through an automation?

Workaround to reload an integration-