Skip to content

v0.3.3 - Enhanced Stability & Debug Release

Latest

Choose a tag to compare

@rknall rknall released this 29 Aug 09:58

πŸ›‘οΈ 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 object errors 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 entity
  • Final config to update: - Shows final config before validation
  • Updating 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.