Skip to content

Commit 8811641

Browse files
authored
Merge pull request #2413 from psolyca/callback_service_call
Add callback argument to Dashboard's call_service
2 parents e296e9f + bf88df9 commit 8811641

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

appdaemon/assets/javascript/dashboard.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ var WidgetBase = function(widget_id, url, skin, parameters, monitored_entities,
326326
}
327327
};
328328

329-
this.call_service = function(child, args)
329+
this.call_service = function(child, args, callback)
330330
{
331331
if ("resident_namespace" in child.parameters)
332332
{
@@ -339,7 +339,7 @@ var WidgetBase = function(widget_id, url, skin, parameters, monitored_entities,
339339

340340
service = args["service"];
341341

342-
window.dashstream.stream.call_service(service, ns, args)
342+
window.dashstream.stream.call_service(service, ns, args, callback)
343343
};
344344

345345
// Initialization

0 commit comments

Comments
 (0)