Added
- Modern Icon Translation System: Implemented comprehensive icon management using Home Assistant's recommended approach
- New Icon Management: All icons now managed through
icons.json
with proper translation keys - State-Based Icons: Added dynamic icons that change based on entity state (status_co, status_cwu, mode, lambda_status)
- Multi-Language Support: Icons properly integrated with translation system for internationalization
- Icon Validation: All Material Design Icons validated and replaced invalid ones with proper alternatives
- New Icon Management: All icons now managed through
Changed
-
Icon System Architecture: Replaced old icon constants with modern translation-based approach
- Before: Icons defined in
const.py
as hardcoded constants - After: Icons managed in
icons.json
with translation key mapping - Benefits: Better maintainability, easier customization, Home Assistant best practices compliance
- Before: Icons defined in
-
Pre-commit Configuration: Streamlined development workflow
- Removed: codespell hook that was causing false positives
- Kept: ruff (linting), ruff-format (formatting), mypy (type checking)
- Impact: Cleaner, faster pre-commit checks with focus on essential quality metrics
Fixed
-
Invalid Material Design Icons: Resolved 20+ non-existent icon references
- Problem: Many icons like
mdi:screw-lag
,mdi:fire-off
,mdi:gauge-off
didn't exist in MDI database - Solution: Replaced with valid alternatives like
mdi:gauge
,mdi:fire
,mdi:conveyor-belt
- Impact: All entities now display proper icons in Home Assistant UI
- Problem: Many icons like
-
Icon Display Issues: Fixed entities not showing icons in UI
- Problem: Some entities like
feeder_works
andcontact_gzc
had missing or broken icons - Solution: Implemented proper translation key mapping and icon validation
- Impact: Consistent icon display across all entity types
- Problem: Some entities like
[v1.1.9] - 2025-01-27
Changed
- Logging Level Refactoring: Major refactoring of logging levels throughout the integration
- VS Code Settings Optimization: Streamlined development environment configuration
Fixed
- Git Pre-commit Hook Issues: Fixed file formatting issues that caused pre-commit hook failures
- Problem: Pre-commit hooks were failing due to trailing whitespace and end-of-file formatting
- Solution: Cleaned up file formatting to meet git hook requirements
- Impact: All pre-commit hooks now pass successfully, ensuring code quality
- Files Modified:
.vscode/settings.json
Technical Changes
- Logging Refactoring: Systematic review and adjustment of log levels across the codebase
- VS Code Configuration: Streamlined Ruff settings to use native VS Code support
- Git Hooks: Ensured all pre-commit hooks pass for consistent code quality
- Development Environment: Cleaner, more maintainable VS Code configuration
- Code Quality: Improved logging practices for better debugging and monitoring
What's Changed
- Feature/icon translations by @jontofront in #171
Full Changelog: v1.1.9...v1.1.10