Skip to content

v1.2.6

Choose a tag to compare

@Geek-MD Geek-MD released this 30 Sep 19:28
1a826ac

🆕 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 the ConfigFlow subclass 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_entity now filters to relevant domains only: sensor, binary_sensor, input_boolean, input_number, input_select.
    • Excludes automations, scenes, scripts, etc.
  • Dynamic state options

    • trigger_state options are generated from the selected entity’s current state and, when available, its attributes.options (e.g., for input_select).
    • Hides unknown and unavailable.
  • 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, and es.json live under custom_components/ha_daily_counter/translations/ and are picked up by the UI.
  • Service icons

    • Corrected icons.json structure so service icons display properly in Developer Tools and Automations:
      {
        "services": {
          "reset_counter": "mdi:restart",
          "set_counter": "mdi:numeric"
        }
      }

✅ Result

  • A clearer, fully translated setup experience.
  • Correct entity filtering and dynamic state selection.
  • Service icons now render next to ha_daily_counter.reset_counter and ha_daily_counter.set_counter, improving usability.
  • MyPy/Ruff clean for the updated flow code.