mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +00:00
Load script field default values into ha-service-control (#14949)
fixes undefined
This commit is contained in:
parent
dfee6c9b5b
commit
50a4c0f7ce
@ -151,6 +151,14 @@ export class HaServiceControl extends LitElement {
|
||||
updatedDefaultValue = true;
|
||||
this._value!.data![field.key] = false;
|
||||
}
|
||||
if (
|
||||
field.selector &&
|
||||
field.default !== undefined &&
|
||||
this._value!.data![field.key] === undefined
|
||||
) {
|
||||
updatedDefaultValue = true;
|
||||
this._value!.data![field.key] = field.default;
|
||||
}
|
||||
});
|
||||
}
|
||||
if (updatedDefaultValue) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user