Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 5 commits into from Sep 23, 2019

Conversation

emontnemery
Copy link
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
Collaborator Author

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.

None yet

3 participants