Skip to content

Script ID update with Alias#12008

Merged
balloob merged 1 commit intodevfrom
Script-Fix-Alias-changing-and-not-updating-the-id
Mar 12, 2022
Merged

Script ID update with Alias#12008
balloob merged 1 commit intodevfrom
Script-Fix-Alias-changing-and-not-updating-the-id

Conversation

@zsarnett
Copy link
Copy Markdown
Contributor

@zsarnett zsarnett commented Mar 10, 2022

Breaking change

Proposed change

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

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:

@@ -569,9 +569,13 @@ export class HaScriptEditor extends KeyboardShortcutMixin(LitElement) {
}

private _aliasChanged(alias: string) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why would we calculate this on every key stroke and not when the user clicks save ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This was our current behavior. We can remove it but they would no longer see the entity ID be created while typing

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Oh, I didn't realize this was a thing. What weird that we show this to users 🤦

For now this is ok as this fixes the bug then…

@balloob balloob merged commit a993d3a into dev Mar 12, 2022
@balloob balloob deleted the Script-Fix-Alias-changing-and-not-updating-the-id branch March 12, 2022 05:25
@balloob balloob mentioned this pull request Mar 12, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Mar 13, 2022
@zsarnett zsarnett added this to the 2022.3.0 milestone Mar 14, 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.

Entity_ID doesn't update when editing automation or script name

3 participants