I have a background script that needs to run when Homeassistant starts.
It have no communication with Home Assistant, but it configures a number of things, that I need for a custom component.
So quite simple, I start Homeassistant, Homeassistant starts the script and forget it.
Please, how to configure in Home Assistant and how to configure in .yaml file.
If you’re creating a custom integration, then why not have it invoke the script, kind of like shell_command can run an external command? E.g., take a look at the following as a reference:
shell_command
https://github.com/home-assistant/core/blob/c8d49a8adfd6a4587b79f2361ec7d59ffdc575e4/homeassistant/components/shell_command/__init__.py