Continuous Integration with integration testing involving HA

Hi,

I’m currently build a little project involving MQTT and the MQTT discovery feature of HA. Using a docker-compose.yml file, I’m able to automate the integration testing of my stuff directly in the continuous integration build server.

In the docker-compose, I’m creating:

  • one instance of my project
  • one instance of mosquito - the mqtt broker I’m using
  • one instance of homeassistant/home-assistant with a custom configuration to connect to mosquito and activate the discovery

Everything work welll .except one thing: a user is required to access HA from the API. Is there a way to script the creation of the first user?.

I found the auth and auth_provider.homeassistant files in the .storage folder..

I’ll try to copy those files, including the onboarding to deactivate the onboarding tutorial at the same time…