mirror of
https://github.com/home-assistant/frontend.git
synced 2025-11-17 06:50:23 +00:00
Replace createValidEntityId with slugify (#6505)
This commit is contained in:
@@ -319,7 +319,7 @@ export class HaScriptEditor extends LitElement {
|
||||
if (this.scriptEntityId || this._entityId) {
|
||||
return;
|
||||
}
|
||||
const aliasSlugify = slugify((ev.target as any).value, "_");
|
||||
const aliasSlugify = slugify((ev.target as any).value);
|
||||
let id = aliasSlugify;
|
||||
let i = 2;
|
||||
while (this.hass.states[`script.${id}`]) {
|
||||
|
||||
Reference in New Issue
Block a user