Skip to content

Commit

Permalink
Fix typo in statistics.markdown home-assistant#29698
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomDietrich authored Nov 5, 2023
1 parent a8674de commit 8c0a0c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/_integrations/statistics.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,6 @@ unique_id:

### An important note on `max_age` and `sampling_size`

If both `max_age` and `sampling_size` are given, the considered samples are those within the `max_age` time window but limited to the number of `sample_size` newest samples. Specify a wide-enough `sampling_size` if using an extended `max_age` (e.g., when looking for `max_age` 1 hour, a sensor that produces one measurement per minute should have at least a `sampling_size` of 60 to use all samples within the `max_age` timeframe.)
If both `max_age` and `sampling_size` are given, the considered samples are those within the `max_age` time window but limited to the number of `sampling_size` newest samples. Specify a wide-enough `sampling_size` if using an extended `max_age` (e.g., when looking for `max_age` 1 hour, a sensor that produces one measurement per minute should have at least a `sampling_size` of 60 to use all samples within the `max_age` timeframe.)

If only `sample_size` is given there is no time limit. If only `max_age` is given the considered number of samples is unlimited.
If only `sampling_size` is given there is no time limit. If only `max_age` is given the considered number of samples is unlimited.

0 comments on commit 8c0a0c2

Please sign in to comment.