mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 09:17:10 +00:00
Require admin to manage lovelace (#33435)
This commit is contained in:
parent
f4eb1f0652
commit
ffefdcfe22
@ -72,6 +72,7 @@ async def websocket_lovelace_config(hass, connection, msg, config):
|
|||||||
return await config.async_load(msg["force"])
|
return await config.async_load(msg["force"])
|
||||||
|
|
||||||
|
|
||||||
|
@websocket_api.require_admin
|
||||||
@websocket_api.async_response
|
@websocket_api.async_response
|
||||||
@websocket_api.websocket_command(
|
@websocket_api.websocket_command(
|
||||||
{
|
{
|
||||||
@ -86,6 +87,7 @@ async def websocket_lovelace_save_config(hass, connection, msg, config):
|
|||||||
await config.async_save(msg["config"])
|
await config.async_save(msg["config"])
|
||||||
|
|
||||||
|
|
||||||
|
@websocket_api.require_admin
|
||||||
@websocket_api.async_response
|
@websocket_api.async_response
|
||||||
@websocket_api.websocket_command(
|
@websocket_api.websocket_command(
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user