Skip to content

A live bird collage card for your Home Assistant dashboard.

Ignore warnings from lsof output (#175)

Ash McKenzie7e7c31a227d8
diff --git a/scripts/utils/helpers.py b/scripts/utils/helpers.py
index 447e9d5a..cb75d584 100644
--- a/scripts/utils/helpers.py
+++ b/scripts/utils/helpers.py
@@ -88,7 +88,7 @@ class ParseFileName:
def get_open_files_in_dir(dir_name):
- result = subprocess.run(['lsof', '-Fn', '+D', f'{dir_name}'], check=False, capture_output=True)
+ result = subprocess.run(['lsof', '-w', '-Fn', '+D', f'{dir_name}'], check=False, capture_output=True)
ret = result.stdout.decode('utf-8')
err = result.stderr.decode('utf-8')
if err: