Add periods to statistics_during_period ws (#59425)

This commit is contained in:
Bram Kragten
2021-11-09 17:29:39 +01:00
committed by GitHub
parent 3d909b00d5
commit 6e7712da3c

View File

@@ -119,7 +119,7 @@ class LazyState(history_models.LazyState):
vol.Required("start_time"): str, vol.Required("start_time"): str,
vol.Optional("end_time"): str, vol.Optional("end_time"): str,
vol.Optional("statistic_ids"): [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 @websocket_api.async_response