I didnt realize that the cbpi_dashboard_n.json files were stored in the main config folder, i thought i broke it with my config folder location and repaired it.
now on every start inside the check_for_setup() function the following happens
check if cbpi_dashboard_1.json is where it belongs (config subfolder dashboard).
if not then move all cbpidashboard*.json files from the main config folder to the configs subfolder dashboard
this results in 2 things:
we should be able to automatically migrate from the old dashboard files location to the new one with existing configurations and dashboards.
we should also be able to restore old config zip files via ui and automatically migrate them
I also removed the default cbpi_dashboard_1.json file from the config template (and the dev config) because an empty file is not needed. the file will be created if content is added and saved via the ui.
I didnt realize that the cbpi_dashboard_n.json files were stored in the main config folder, i thought i broke it with my config folder location and repaired it.
now on every start inside the check_for_setup() function the following happens
this results in 2 things:
I also removed the default cbpi_dashboard_1.json file from the config template (and the dev config) because an empty file is not needed. the file will be created if content is added and saved via the ui.