Skip to content

Add support for and and or conditions to the automation editor.#3724

Merged
balloob merged 5 commits into
home-assistant:devfrom
emontnemery:automation_and_or_condition
Sep 23, 2019
Merged

Add support for and and or conditions to the automation editor.#3724
balloob merged 5 commits into
home-assistant:devfrom
emontnemery:automation_and_or_condition

Conversation

@emontnemery
Copy link
Copy Markdown
Collaborator

@emontnemery emontnemery commented Sep 15, 2019

Add support for and and or conditions to the automation editor.

Screenshot:
image

}

public conditionChanged(conditions) {
if (this._mounted) {
Copy link
Copy Markdown
Collaborator Author

@emontnemery emontnemery Sep 16, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Without this check, things do not work correctly, reproduction steps:

  • Create a new automation
  • Add a condition and set type to and
  • Add two sub-conditions under the and condition, and populate them, for example
    image
  • Change type of the and condition to or:
    image
  • Add a second sub-condition under the or condition - the or condition is reverted back to and:
    image

@emontnemery emontnemery changed the title WIP: Add support for and and or conditions in automations Add support for and and or conditions to the automation editor. Sep 16, 2019
@balloob balloob merged commit a08884f into home-assistant:dev Sep 23, 2019
@bramkragten bramkragten mentioned this pull request Oct 2, 2019
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants