mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-21 08:16:36 +00:00
Fix service control for older browsers (#11629)
This commit is contained in:
parent
134ed7d303
commit
ce3b8544b9
@ -135,7 +135,9 @@ export class HaServiceControl extends LitElement {
|
|||||||
let updatedDefaultValue = false;
|
let updatedDefaultValue = false;
|
||||||
if (this._value && serviceData) {
|
if (this._value && serviceData) {
|
||||||
// Set mandatory bools without a default value to false
|
// Set mandatory bools without a default value to false
|
||||||
this._value.data ??= {};
|
if (!this._value.data) {
|
||||||
|
this._value.data = {};
|
||||||
|
}
|
||||||
serviceData.fields.forEach((field) => {
|
serviceData.fields.forEach((field) => {
|
||||||
if (
|
if (
|
||||||
field.selector &&
|
field.selector &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user