Skip to content

Commit 0baa420

Browse files
authored
Merge pull request #19 from junkfix/junkfix-patch-1
Fix blocking call error in log
2 parents b7ad97a + cd029d6 commit 0baa420

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

custom_components/config_editor/__init__.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,13 @@ def permi():
120120
elif (action == 'list'):
121121
dirnm = os.path.dirname(hass.config.path(yamlname))
122122
listyaml = []
123-
rec(dirnm, '')
123+
def reca():
124+
rec(dirnm, '')
125+
await hass.async_add_executor_job(reca)
124126
if msg["depth"]>0:
125-
drec(dirnm, '')
127+
def dreca():
128+
drec(dirnm, '')
129+
await hass.async_add_executor_job(dreca)
126130
if (len(listyaml) < 1):
127131
listyaml = ['list_error.'+ext]
128132
connection.send_result(

custom_components/config_editor/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
"documentation": "https://github.com/junkfix/config-editor-card",
66
"iot_class": "local_polling",
77
"issue_tracker": "https://github.com/junkfix/config-editor/issues",
8-
"version": "4.4"
8+
"version": "4.4.2"
99
}

0 commit comments

Comments
 (0)