Repository navigation
v1.3.2 - Fix Orphaned Entities
🐛 Bug Fixes
Auto-Remove Orphaned Entities
- Problem: When deselecting cryptocurrencies during reconfiguration, old entities remained as "unavailable"
- Solution: Automatically detect and remove entities for deselected cryptocurrencies
- Benefit: Clean entity registry, no manual cleanup needed
Fix State Class Warning
- Problem: Home Assistant warned about invalid state_class for monetary device class
- Solution: Use
Nonestate class for monetary prices (not cumulative values) - Benefit: No more warnings in logs
Improved Reconfiguration Handling
- Added update listener for proper config entry reload
- Better entity lifecycle management during reconfiguration
📝 What's Changed
- Modified
config_flow.py: Auto-remove orphaned entities by unique_id - Modified
sensor.py: Fix state_class for MONETARY device class - Modified
__init__.py: Add update listener registration - Version bump: 1.3.1 → 1.3.2
🔧 Technical Details
- Entity removal based on unique_id comparison
- Proper entity registry cleanup before reload
- State class set to None for non-cumulative monetary values
⚠️ Important Note
When reconfiguring, existing cryptocurrencies are pre-selected. Make sure to:
- Keep existing cryptos checked if you want to keep them
- Add new cryptos to the selection
- Uncheck cryptos you want to remove
🤖 Generated with Claude Code