Skip to content

v1.5.2

Choose a tag to compare

@github-actions github-actions released this 16 Apr 03:49
0225e11

πŸ”§ Bug Fix + ✨ New Features

This release fixes a critical bug introduced in earlier versions and adds two new UX features: state selection via dropdown and multi-language support.

Fixed

  • βœ… No entities after initial setup: async_step_finish() in config_flow.py was storing trigger data in entry.data instead of entry.options. Since sensor.py's async_setup_entry reads from entry.options.get("counters", []), no entities were created after the initial config flow. The counter is now correctly stored in entry.options as {"counters": [{...}]}.
  • βœ… Backward compatibility for pre-v1.5.2 entries: sensor.py now falls back to entry.data when entry.options has no counters, so entries created before this fix continue to work (with a logged warning to re-create the entry for a full migration).

Added

  • ✨ State selection via dropdown: The trigger state field is now a dropdown selector populated with the entity's known possible states, replacing the free-text input. Supported domains:
    • binary_sensor, input_boolean, switch, light, fan, lock, automation, script β†’ on / off
    • cover β†’ open, closed, opening, closing
    • alarm_control_panel β†’ disarmed, armed_home, armed_away, armed_night, pending, triggered
    • input_select β†’ options read from the entity's options attribute at runtime
    • All other domains β†’ current state of the entity shown as default option
    • The selector supports custom_value=True, so users can always type a state not in the list.
  • ✨ Multi-language support: The UI now ships with translations for 5 languages:
    • πŸ‡¬πŸ‡§ English (en)
    • πŸ‡ͺπŸ‡Έ Spanish (es)
    • πŸ‡«πŸ‡· French (fr) β€” new
    • πŸ‡΅πŸ‡Ή Portuguese (pt) β€” new
    • πŸ‡©πŸ‡ͺ German (de) β€” new

Changed

  • Config flow split: async_step_first_trigger now only collects the entity; a new async_step_first_trigger_state step handles state selection via dropdown.
  • Config flow split: async_step_another_trigger now only collects the entity and logic; a new async_step_another_trigger_state step handles state selection via dropdown.
  • Options flow async_step_trigger_state and async_step_edit_trigger_state now use the same dropdown selector instead of a plain text field.
  • Updated all translation files (en, es, strings) to reflect the new step structure.
  • Updated version to 1.5.2 in manifest.json.