v1.2.6
🆕 HA Daily Counter v1.2.6
🐞 Fixes
-
Config Flow logic
- Fixed the multi-step flow to reliably collect Name → Entity → State without dropping context.
- Removed the invalid
domain=usage in theConfigFlowsubclass that triggered MyPy errors and runtime “Invalid handler specified”. - Ensured the second step is only shown after selecting the entity, and that the selected entity is correctly carried over to the state picker.
-
Entity filtering
trigger_entitynow filters to relevant domains only:sensor,binary_sensor,input_boolean,input_number,input_select.- Excludes automations, scenes, scripts, etc.
-
Dynamic state options
trigger_stateoptions are generated from the selected entity’s current state and, when available, itsattributes.options(e.g., forinput_select).- Hides
unknownandunavailable.
-
Translations & UI labels
- Fixed untranslated/incorrect labels in the UI (e.g., avoiding raw identifiers like
trigger_entity/trigger_state). - Added and used proper
translation_keys in forms so the dialog shows friendly texts:- “Entity to Monitor” / “Entidad a Monitorizar”
- “Select State” / “Seleccionar Estado”
- “State to Monitor” / “Estado a Monitorizar”
- Ensured
strings.json,en.json, andes.jsonlive undercustom_components/ha_daily_counter/translations/and are picked up by the UI.
- Fixed untranslated/incorrect labels in the UI (e.g., avoiding raw identifiers like
-
Service icons
- Corrected
icons.jsonstructure so service icons display properly in Developer Tools and Automations:{ "services": { "reset_counter": "mdi:restart", "set_counter": "mdi:numeric" } }
- Corrected
✅ Result
- A clearer, fully translated setup experience.
- Correct entity filtering and dynamic state selection.
- Service icons now render next to
ha_daily_counter.reset_counterandha_daily_counter.set_counter, improving usability. - MyPy/Ruff clean for the updated flow code.