Commit 8d39cc1
Add diagnostic logging for dashboard UI troubleshooting
Enhance error reporting and debugging capabilities:
**View Strategy (view-strategy.ts):**
- Add console.error logging with detailed error information
- Display error message and stack trace in UI markdown card
- Direct users to browser console (F12) for full details
- Helps diagnose config loading failures
**Generate View (generate-view.ts):**
- Log view generation start with config details (debug level)
- Warn when pinActiveEntity is missing for a slot
- Warn when no main entities (name, PIN, etc.) found for slot
- Debug log when codeEventEntity missing (expected if no events)
**Benefits:**
- Easier troubleshooting for users experiencing UI issues
- Better visibility into what entities are missing
- Console logs help maintainers diagnose reported problems
- More informative error messages guide users to solutions
These logs will help diagnose:
- Entity creation timing issues (#358, #289)
- Config entry loading problems
- Missing/incomplete entity data
- Dashboard loading failures1 parent 38aeac0 commit 8d39cc1
File tree
3 files changed
+43
-2
lines changed- custom_components/lock_code_manager/www
- ts
3 files changed
+43
-2
lines changed
0 commit comments