Skip to content

Commit

Permalink
Fix blocking call error in log
Browse files Browse the repository at this point in the history
Fixes #18
  • Loading branch information
junkfix authored Sep 3, 2024
1 parent b7ad97a commit 632dced
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions custom_components/config_editor/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,13 @@ def permi():
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(
Expand Down

0 comments on commit 632dced

Please sign in to comment.