Update __init__.py

This commit is contained in:
htmltiger 2021-12-05 15:18:00 +00:00 committed by GitHub
parent ee8e7b9621
commit 07ff1a8c4f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -45,7 +45,7 @@ async def websocket_create(hass, connection, msg):
v = os.path.join(r, d)
if os.path.isdir(v):
p = d if s == '' else os.path.join(s, d)
if(p.count(os.sep) < 2):
if(p.count(os.sep) < 2) and p != 'custom_components':
rec(v, p)
drec(v, p)