I’m working on a component that I want to integrate with the new UI configuration method. I know that this only works for builtin components so I forked the HA repo and built a test environment. I ran python -m script.hassfest
to populate the config flow entries and script/setup. In the component I have config_flow: true
in manifest.json and the following strings.json file:
{
"config": {
"title": "VeSync",
"step": {
"user": {
"title": "Fill in your information",
"data": {
"username": "Email Address",
"password": "Password",
"time_zone": "Set custom time zone (optional)"
}
}
},
"error": {
"identifier_exists": "Account already registered",
"invalid_credentials": "Invalid credentials"
}
}
}
The problem is when I click on add integration, it shows up as a blank entry on the top of the list. When I click on add, the correct user form shows up but there is no description or text in any of the lines. I enter the login info and click submit and the component sets up (at least to the point where I know it has a bug). Is there something I’m missing to make the strings.json populate the UI fields?
This is the folder in my fork with the component I’m working on: https://github.com/webdjoe/home-assistant/tree/dev/homeassistant/components/vesync
Any help would be appreciated!