Skip to content

Conversation

@wendevlin
Copy link
Member

Proposed change

  • Automation editor
    • add trigger/condition/action from a target tree

Type of change

  • Dependency upgrade
  • Bugfix (non-breaking change which fixes an issue)
  • New feature (thank you!)
  • Breaking change (fix/feature causing existing functionality to break)
  • Code quality improvements to existing code or addition of tests

Example configuration

Additional information

  • This PR fixes or closes issue: fixes #
  • This PR is related to issue or discussion:
  • Link to documentation pull request:

Checklist

  • The code change is tested and works locally.
  • There is no commented out code in this PR.
  • Tests have been added to verify that the new code works.

If user exposed functionality or configuration variables are added/changed:

Comment on lines +243 to +245
const floor =
entries[
`floor${TARGET_SEPARATOR}${this.areas[valueId]?.floor_id || ""}`
Copy link
Member

Choose a reason for hiding this comment

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

meaning floor could be undefined right?

Copy link
Member Author

Choose a reason for hiding this comment

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

yes then it renders the "Other areas"

// floor areas, unassigned areas
if (valueType === "floor") {
return this._renderAreas(
entries[`floor${TARGET_SEPARATOR}${valueId ?? ""}`].areas!
Copy link
Member

Choose a reason for hiding this comment

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

Can valueId be undefined/null?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, for all pseudo views like, other areas, devices, services, helpers....

bramkragten
bramkragten previously approved these changes Nov 25, 2025
@wendevlin wendevlin marked this pull request as ready for review November 25, 2025 16:15
@bramkragten bramkragten merged commit 493d650 into dev Nov 26, 2025
14 of 15 checks passed
@bramkragten bramkragten deleted the add-automation-element-by-target branch November 26, 2025 11:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants