Build JSON in executor (#12536)
This commit is contained in:
1 parent
39847ea651
commit
fb985e2909
2 files changed
+8
-4
No files matched your search
@@ -136,7 +136,8 @@ class LogbookView(HomeAssistantView):
|
||||
|
||||
events = yield from hass.async_add_job(
|
||||
_get_events, hass, self.config, start_day, end_day)
|
||||
return self.json(events)
|
||||
response = yield from hass.async_add_job(self.json, events)
|
||||
return response
|
||||
|
||||
|
||||
class Entry(object):
|
||||
|
||||
Reference in new issue
Block a user