Changes to manifest.json are ignored

Hi all!

Changes I make to manifest.json are being ignored when I (re)start the HA devcontainer.

My initial manifest.json looked like this:

{
  "domain": "my-integration-domain",
  "name": "My Integration",
  "codeowners": ["@GithubUser"],
  "config_flow": true,
  "dependencies": ["mqtt"],
  "documentation": "https://www.home-assistant.io/integrations/my-integration",
  "integration_type": "hub",
  "iot_class": "local_push",
  "mqtt": [ "app/config/#" ],
  "requirements": ["mymqttapi @ ../mymqttapi/"],
  "single_config_entry": false
}

I want to change the mqtt array to this:

  "mqtt": [
    "app/config",
    "app/+/state"
  ],

But in the async_step_mqtt step of the config flow, the only topic that comes in is app/config/# (note the hash). I monitor discovery_info.subscribed_topic to check this.

Things I’ve tried so far:

  • Setting the mqtt property to an empty array. Step is still executed with first topic that was configured (the one with the hash)!
  • Rebuilding the devcontainer.
  • Googled
  • Checked HA developers documentation

Is there any way to force a reload of the manifest.json file?

If it matters, I’m running the devcontainer through WSL.

Thx!

I have found the solution! :raised_hands:

So I searched the entire code base on my initial topic app/config/# and found this file: homeassistant/generated/mqtt.py. At the top of the file, the following comment is found:

To update, run python3 -m script.hassfest

After running the command, everything works as expected.

Cheers!