mirror of
https://github.com/junkfix/config-editor.git
synced 2026-02-22 18:26:40 +01:00
Merge pull request #19 from junkfix/junkfix-patch-1
Fix blocking call error in log
This commit is contained in:
commit
0baa420eba
|
|
@ -120,9 +120,13 @@ async def websocket_create(hass, connection, msg):
|
|||
elif (action == 'list'):
|
||||
dirnm = os.path.dirname(hass.config.path(yamlname))
|
||||
listyaml = []
|
||||
rec(dirnm, '')
|
||||
def reca():
|
||||
rec(dirnm, '')
|
||||
await hass.async_add_executor_job(reca)
|
||||
if msg["depth"]>0:
|
||||
drec(dirnm, '')
|
||||
def dreca():
|
||||
drec(dirnm, '')
|
||||
await hass.async_add_executor_job(dreca)
|
||||
if (len(listyaml) < 1):
|
||||
listyaml = ['list_error.'+ext]
|
||||
connection.send_result(
|
||||
|
|
|
|||
|
|
@ -5,5 +5,5 @@
|
|||
"documentation": "https://github.com/junkfix/config-editor-card",
|
||||
"iot_class": "local_polling",
|
||||
"issue_tracker": "https://github.com/junkfix/config-editor/issues",
|
||||
"version": "4.4"
|
||||
"version": "4.4.2"
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue