Frontend indicate require admin (#22272)
* Allow panels to indicate they are meant for admins * Panels to indicate when they require admin access * Do not return admin-only panels to non-admin users * Fix flake8
This commit is contained in:
1 parent
b57d809dad
commit
f1a0ad9e4a
9 files changed
+90
-14
No files matched your search
@@ -32,7 +32,7 @@ ON_DEMAND = ('zwave',)
|
||||
async def async_setup(hass, config):
|
||||
"""Set up the config component."""
|
||||
await hass.components.frontend.async_register_built_in_panel(
|
||||
'config', 'config', 'hass:settings')
|
||||
'config', 'config', 'hass:settings', require_admin=True)
|
||||
|
||||
async def setup_panel(panel_name):
|
||||
"""Set up a panel."""
|
||||
|
||||
Reference in new issue
Block a user