Hass --script check_config much slower than REST /api/config/core/check_config

I’m looking to automate configuration files copying to HA core running in a docker container.

I want to validate that the files I’ve copied are actually valid.

I’ve discovered 2 options:

Now there are 2 questions that I have around this:

  • Why is CLI so slow? It reguarly takes 15 seconds for this command to complete
  • Are those 2 equivalent?

EDIT: is there a way to reload config through API/CLI without restart? When I click the reload configuration buttons on UI there’s no network calls being made :thinking:

I THINK, but not certain, one just checks that the YAML is valid, the other also does the reload all command to check that it reloads without error.