v1.3.9
✨ New Feature: Counter Reconfiguration via Options Flow
This release adds the ability to edit and reconfigure existing counters directly through the Home Assistant UI, without having to delete and recreate them.
Added
- ✨ Edit Counter Option: New "Edit counter" action in the options flow menu
- 🔄 Reconfigure Trigger Entity: Ability to change the entity that triggers the counter
- 🔄 Reconfigure Trigger State: Ability to change the state that increments the counter
- 🔄 Automatic Reload: Integration automatically reloads when configuration changes are saved
- 📋 Current Values Display: Shows current configuration before making changes in the edit flow
Changed
- Updated
__init__.pyto register an update listener that reloads the integration when options are modified - Enhanced
options_flow.pywith new edit steps:async_step_select_edit,async_step_edit_trigger_entity, andasync_step_edit_trigger_state - Updated all translation files (en.json, es.json, strings.json) with new edit-related strings
- Updated version to 1.3.9 in manifest.json
Technical Details
- Added
async_reload_entryfunction in__init__.pyto handle config entry reloads - Registered update listener in
async_setup_entryto detect option changes and trigger reload - Modified
HADailyCounterOptionsFlowclass to track editing state with_selected_edit_indexand_editing_counter - Edit flow preserves counter ID to maintain entity continuity
How to Use
- Go to Settings → Devices & Services
- Find your HA Daily Counter integration
- Click "Configure" on any existing counter entry
- Select "Edit counter" from the action menu
- Choose which counter you want to edit
- Update the trigger entity or trigger state
- The integration will automatically reload with the new configuration