Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 67d531c

Browse files
committed
Fix optionals
1 parent 6bec268 commit 67d531c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

source/_integrations/recorder.markdown

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -259,11 +259,11 @@ Perform the action `recorder.get_statistics` to retrieve statistics for one or m
259259

260260
| Data attribute | Optional | Description |
261261
| -------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
262-
| `statistic_ids`| yes | The entity IDs or statistic IDs to get statistics for. |
263-
| `start_time` | yes | The start time for the statistics query. |
262+
| `statistic_ids`| no | The entity IDs or statistic IDs to get statistics for. |
263+
| `start_time` | no | The start time for the statistics query. |
264264
| `end_time` | yes | The end time for the statistics query. If omitted, returns all statistics from start time onward. |
265-
| `period` | yes | The time period to group statistics by (`5minute`, `hour`, `day`, `week`, or `month`). |
266-
| `types` | yes | The types of statistics values to return (`change`, `last_reset`, `max`, `mean`, `min`, `state`, or `sum`). |
265+
| `period` | no | The time period to group statistics by (`5minute`, `hour`, `day`, `week`, or `month`). |
266+
| `types` | no | The types of statistics values to return (`change`, `last_reset`, `max`, `mean`, `min`, `state`, or `sum`). |
267267
| `units` | yes | Optional unit conversion mapping. An object where keys are [device classes](https://www.home-assistant.io/integrations/sensor#device-class) and values are the desired target units. This allows retrieving statistics converted to different units than what's stored in the database. |
268268

269269
#### Example using get_statistics

0 commit comments

Comments
 (0)