homebridge / plugin-ui-utils

Create fully customisable configuration user interfaces for Homebridge plugins.
https://homebridge.io
MIT License
34 stars 7 forks source link

Open config Schema form if config.json not contain plugin config #3

Closed grzegorz914 closed 1 year ago

grzegorz914 commented 3 years ago

Hi,

after install this: https://github.com/grzegorz914/homebridge-xbox-tv#readme plugin and open its settings for first config the custom UI util is loaded but the button to Show/Hide Config doesn’t work and not open config.schema. If I add manually the config to the config.json the custom UI util work correct.

thenewwazoo commented 2 years ago

@grzegorz914 I recently went through something similar, and had to add a routine to "bootstrap" the config. It's kinda ugly, but it gets the job done. I've found that users can't be relied upon to have a sane config when the UI starts up!

grzegorz914 commented 1 year ago

I have fixed this, so close the issue.