mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 09:47:13 +00:00
Add periods to statistics_during_period ws (#59425)
This commit is contained in:
parent
3d909b00d5
commit
6e7712da3c
@ -119,7 +119,7 @@ class LazyState(history_models.LazyState):
|
||||
vol.Required("start_time"): str,
|
||||
vol.Optional("end_time"): str,
|
||||
vol.Optional("statistic_ids"): [str],
|
||||
vol.Required("period"): vol.Any("hour", "5minute"),
|
||||
vol.Required("period"): vol.Any("5minute", "hour", "day", "month"),
|
||||
}
|
||||
)
|
||||
@websocket_api.async_response
|
||||
|
Loading…
x
Reference in New Issue
Block a user