Skip to content

Commit

Permalink
Fix event stream
Browse files Browse the repository at this point in the history
  • Loading branch information
acockburn committed Aug 22, 2017
1 parent 3855f9c commit b8a2991
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
8 changes: 4 additions & 4 deletions appdaemon/appdash.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def list_dash_no_secure(request):

def _list_dash(request):
completed, pending = yield from asyncio.wait(
[conf.loop.run_in_executor(conf.executor, conf.dashboard.get_dashboard_list)])
[conf.loop.run_in_executor(conf.executor, conf.dashboard_obj.get_dashboard_list)])
response = list(completed)[0].result()
return web.Response(text=response, content_type="text/html")

Expand All @@ -135,7 +135,7 @@ def load_dash(request):
recompile = False

completed, pending = yield from asyncio.wait(
[conf.loop.run_in_executor(conf.executor, conf.dashboard.get_dashboard, name, skin, recompile)])
[conf.loop.run_in_executor(conf.executor, conf.dashboard_obj.get_dashboard, name, skin, recompile)])
response = list(completed)[0].result()

return web.Response(text=response, content_type="text/html")
Expand Down Expand Up @@ -324,13 +324,13 @@ def run_dash(loop, tasks):
# noinspection PyBroadException
try:
if conf.dashboard is True:
conf.dashboard = dashboard.Dashboard(conf.config_dir, conf.dash,
conf.dashboard_obj = dashboard.Dashboard(conf.config_dir, conf.dash,
dash_compile_on_start=conf.dash_compile_on_start,
dash_force_compile=conf.dash_force_compile,
profile_dashboard=conf.profile_dashboard,
dashboard_dir = conf.dashboard_dir,
)
setup_routes(conf.dashboard)
setup_routes(conf.dashboard_obj)

if conf.dash_ssl_certificate is not None and conf.dash_ssl_key is not None:
context = ssl.SSLContext(ssl.PROTOCOL_SSLv23)
Expand Down
1 change: 0 additions & 1 deletion appdaemon/dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
class Dashboard:

def __init__(self, config_dir, logger, **kwargs):
print(kwargs)
#
# Set Defaults
#
Expand Down
1 change: 0 additions & 1 deletion appdaemon/widgets/baselight/baselight.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ function baselight(widget_id, url, skin, parameters)
{
args = self.parameters.post_service_inactive
}
console.log(args)
self.call_service(self, args)
toggle(self)
}
Expand Down

0 comments on commit b8a2991

Please sign in to comment.