Merge pull request #19 from junkfix/junkfix-patch-1

Fix blocking call error in log
This commit is contained in:
junkfix 2024-09-04 00:54:16 +01:00 committed by GitHub
commit 0baa420eba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 3 deletions

View file

@ -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(

View file

@ -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"
}