Skip to content

Commit

Permalink
Revert "Update filesize.markdown (home-assistant#21904)" (home-assist…
Browse files Browse the repository at this point in the history
  • Loading branch information
fabaff authored Mar 7, 2022
1 parent b8367dc commit c15c1bb
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions source/_integrations/filesize.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ ha_release: 0.64
ha_domain: filesize
ha_platforms:
- sensor
ha_codeowners:
- '@gjohansson-ST'
---

The `filesize` sensor is for displaying the size in MB of a file.
Expand All @@ -21,4 +19,20 @@ File paths must also be added to [allowlist_external_dirs](/docs/configuration/b

</div>

{% include integrations/config_flow.md %}
## Configuration

To enable the `filesize` sensor, add the following lines to your `configuration.yaml`:

```yaml
sensor:
- platform: filesize
file_paths:
- /config/home-assistant_v2.db
```
{% configuration %}
file_paths:
description: The absolute path to the file.
required: true
type: list
{% endconfiguration %}

0 comments on commit c15c1bb

Please sign in to comment.