mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 16:57:53 +00:00
Fixed a bug that prevented the service dialog from sending JSON
This commit is contained in:
parent
a4bac63161
commit
ca336bef57
@ -1,2 +1,2 @@
|
||||
""" DO NOT MODIFY. Auto-generated by build_frontend script """
|
||||
VERSION = "eed02673a7e36fe85f2fa021373d0156"
|
||||
VERSION = "560228cee9ffd6de4dfdb5816b2f9a23"
|
||||
|
@ -19139,7 +19139,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
clickFireEvent: function() {
|
||||
this.api.fire_event(
|
||||
this.$.inputType.value,
|
||||
this.$.inputData.value
|
||||
JSON.parse(this.$.inputData.value)
|
||||
)
|
||||
}
|
||||
});
|
||||
@ -19861,7 +19861,7 @@ core-item {
|
||||
this.api.call_service(
|
||||
this.$.inputDomain.value,
|
||||
this.$.inputService.value,
|
||||
this.$.inputData.value
|
||||
JSON.parse(this.$.inputData.value)
|
||||
)
|
||||
}
|
||||
});
|
||||
@ -20281,8 +20281,6 @@ core-item {
|
||||
},
|
||||
|
||||
fire_event: function(eventType, eventData) {
|
||||
eventData = eventData ? JSON.parse(eventData) : "";
|
||||
|
||||
var successToast = function() {
|
||||
this.showToast("Event "+eventType+" fired.");
|
||||
}
|
||||
|
@ -70,7 +70,7 @@
|
||||
clickFireEvent: function() {
|
||||
this.api.fire_event(
|
||||
this.$.inputType.value,
|
||||
this.$.inputData.value
|
||||
JSON.parse(this.$.inputData.value)
|
||||
)
|
||||
}
|
||||
});
|
||||
|
@ -270,8 +270,6 @@
|
||||
},
|
||||
|
||||
fire_event: function(eventType, eventData) {
|
||||
eventData = eventData ? JSON.parse(eventData) : "";
|
||||
|
||||
var successToast = function() {
|
||||
this.showToast("Event "+eventType+" fired.");
|
||||
}
|
||||
|
@ -68,7 +68,7 @@
|
||||
this.api.call_service(
|
||||
this.$.inputDomain.value,
|
||||
this.$.inputService.value,
|
||||
this.$.inputData.value
|
||||
JSON.parse(this.$.inputData.value)
|
||||
)
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user