From c15c1bbf107f8272a93f6343c9a83c0028948b9f Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 7 Mar 2022 12:47:35 +0100 Subject: [PATCH] Revert "Update filesize.markdown (#21904)" (#21909) --- source/_integrations/filesize.markdown | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/source/_integrations/filesize.markdown b/source/_integrations/filesize.markdown index ed886c78a82..786d03298cc 100644 --- a/source/_integrations/filesize.markdown +++ b/source/_integrations/filesize.markdown @@ -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. @@ -21,4 +19,20 @@ File paths must also be added to [allowlist_external_dirs](/docs/configuration/b -{% 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 %}