π‘οΈ Enhanced Stability & Debug Release
This release focuses on robust error handling and debugging capabilities to resolve configuration issues.
π Critical Bug Fixes
- π¨ Config Undefined Errors: Fixed all
TypeError: undefined is not an objecterrors when accessing config properties - β‘ Entity Selection Stability: Enhanced entity selection with comprehensive validation
- π§ Image Loading Fallbacks: Improved image error handling with graceful fallbacks
- π οΈ Constructor Safety: Added proper initialization to prevent undefined states
π Debug & Troubleshooting
- π Debug Logging: Added comprehensive debug logs for config flow tracking
- π Config Validation: Enhanced validation with undefined value filtering
- π Error Reporting: Better error messages and console output for troubleshooting
- π‘οΈ Optional Chaining: Added safe property access throughout
π― Technical Improvements
- Constructor Initialization: Both card and editor now initialize with default configs
- Robust _updateConfig: Filters out undefined values completely before dispatch
- Enhanced Entity Selection: Better validation and error handling in
_onEntitySelect - Safe Property Access: Added
?.operators to prevent undefined access
π§ Debugging Features
Enable browser console to see debug information:
Auto config from entity:- Shows extracted config from selected entityFinal config to update:- Shows final config before validationUpdating config:- Shows validated config being dispatched
π¦ Installation
Download teddy-card.js and install via HACS or manually in your /config/www directory.
ποΈ For Users Experiencing Issues
This release specifically addresses:
- Entity selection crashes
- Undefined config errors
- Image loading HTTP 500 errors
- Card initialization failures
Recommended update for all users experiencing configuration or selection issues.
Debug Info: Check your browser console (F12) for detailed debug logs when configuring the card.