Require admin to manage lovelace (#33435)

pull/33465/head
Bram Kragten 2020-03-31 11:43:21 +02:00 committed by GitHub
parent f4eb1f0652
commit ffefdcfe22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -72,6 +72,7 @@ async def websocket_lovelace_config(hass, connection, msg, config):
return await config.async_load(msg["force"])
@websocket_api.require_admin
@websocket_api.async_response
@websocket_api.websocket_command(
{
@ -86,6 +87,7 @@ async def websocket_lovelace_save_config(hass, connection, msg, config):
await config.async_save(msg["config"])
@websocket_api.require_admin
@websocket_api.async_response
@websocket_api.websocket_command(
{