Closed gcoan closed 2 months ago
@springfall2008 I worked out how to test this now myself and it works fine, so unless you have a real objection to this change I'll include it in my next PR
Seems like a fair change to make
Changed and tested, will include in next PR
Included in 8.3.3
Describe the bug The installation instructions are (in summary);
Only as shown with feedback on a couple of recent new users #1210 #1218 this sequence doesn't actually work because the predbat_dashboard.yaml is not created until the first time Predbat runs when template: true is removed from apps.yaml
Expected behavior I could change the documentation for a revised sequence of activity but I think it would be better if we changed the Predbat code.
The predbat entities in HA are created by load_user_config called as part of initialize but the Predbat dashboard is created by create_entity_list() which is only called from update_time_loop or run_time_loop both of which are called after the template check at line 11004 in predbat.py
Propose that when detecting a template config the predbat dashboard is still created so users can use it to build a dashboard from before having to turn Predbat 'on':
Predbat version v8.0.0
Environment details n/a