forked from home-assistant/core
Allow non-admin users to call history/list_statistic_ids (#54698)
This commit is contained in:
@@ -167,7 +167,6 @@ async def ws_get_statistics_during_period(
|
|||||||
vol.Optional("statistic_type"): vol.Any("sum", "mean"),
|
vol.Optional("statistic_type"): vol.Any("sum", "mean"),
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
@websocket_api.require_admin
|
|
||||||
@websocket_api.async_response
|
@websocket_api.async_response
|
||||||
async def ws_get_list_statistic_ids(
|
async def ws_get_list_statistic_ids(
|
||||||
hass: HomeAssistant, connection: websocket_api.ActiveConnection, msg: dict
|
hass: HomeAssistant, connection: websocket_api.ActiveConnection, msg: dict
|
||||||
|
Reference in New Issue
Block a user