Add example allowlist_external_dirs in filesize (#39136)

This commit is contained in:
G Johansson 2025-05-25 19:20:26 +02:00 committed by GitHub
parent d35ca3f8f0
commit 9b77fa43b0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -21,6 +21,20 @@ The **File size** {% term integration %} is for displaying the size in MB of a f
File paths must also be added to [allowlist_external_dirs](/integrations/homeassistant/#allowlist_external_dirs) in your `configuration.yaml`.
Example `allowlist_external_dirs` configuration to monitor a file in your configuration folder.
{% raw %}
```yaml
homeassistant:
allowlist_external_dirs:
- "/config" # Default configuration directory
```
{% endraw %}
File paths should be absolute paths. For example: `/config/home-assistant_v2.db` to monitor the size of the default database.
{% endimportant %}