Skip to content

v1.3.2

Choose a tag to compare

@Geek-MD Geek-MD released this 03 Nov 17:21
dfb64d2

🆕 HA Daily Counter v1.3.2

🐞 Fixes

  • Fixed hacs.json and manifest.json to fully comply with HACS integration requirements.
  • Added CONFIG_SCHEMA using cv.config_entry_only_config_schema(DOMAIN) to satisfy Hassfest validation rules.
  • Reorganized imports in __init__.py to comply with Ruff E402 (“imports must be at the top of the file”).
  • Added missing import for DOMAIN in counter.py, resolving Ruff F821 (“undefined name 'DOMAIN'”).
  • Corrected device_info method typing to match Home Assistant’s DeviceInfo | None standard, ensuring Mypy passes cleanly.
  • Verified that all modules pass Ruff and Mypy with zero errors or warnings.

⚙️ Code Quality

  • Improved consistency and readability across all modules.
  • All imports sorted, typing hints added, and file headers aligned with Home Assistant best practices.

🧩 Result

The integration is now fully compliant with HACS, Hassfest, Ruff, and Mypy.
All counters and entities load correctly, historical statistics remain intact,
and users can safely upgrade without losing functionality or data.