Move event permissions out of the websocket api into auth (#101975)
This commit is contained in:
parent
3c3f512583
commit
93f10cdce8
9 changed files with 44 additions and 35 deletions
|
@ -17,7 +17,12 @@ from homeassistant.components import onboarding, websocket_api
|
|||
from homeassistant.components.http.view import HomeAssistantView
|
||||
from homeassistant.components.websocket_api.connection import ActiveConnection
|
||||
from homeassistant.config import async_hass_config_yaml
|
||||
from homeassistant.const import CONF_MODE, CONF_NAME, EVENT_THEMES_UPDATED
|
||||
from homeassistant.const import (
|
||||
CONF_MODE,
|
||||
CONF_NAME,
|
||||
EVENT_PANELS_UPDATED,
|
||||
EVENT_THEMES_UPDATED,
|
||||
)
|
||||
from homeassistant.core import HomeAssistant, ServiceCall, callback
|
||||
from homeassistant.helpers import service
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
|
@ -40,7 +45,6 @@ CONF_EXTRA_MODULE_URL = "extra_module_url"
|
|||
CONF_EXTRA_JS_URL_ES5 = "extra_js_url_es5"
|
||||
CONF_FRONTEND_REPO = "development_repo"
|
||||
CONF_JS_VERSION = "javascript_version"
|
||||
EVENT_PANELS_UPDATED = "panels_updated"
|
||||
|
||||
DEFAULT_THEME_COLOR = "#03A9F4"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue