Add frontend storage (#20880)

* Add frontend storage

* Update storage.py
This commit is contained in:
Paulus Schoutsen authored and Pascal Vizeli committed 2019-02-12 16:38:19 +01:00
1 parent 1e69848af4
commit 00b8d57cd0
3 files changed
+268

No files matched your search

@@ -24,6 +24,8 @@ from homeassistant.core import callback
from homeassistant.helpers.translation import async_get_translations
from homeassistant.loader import bind_hass
from .storage import async_setup_frontend_storage
REQUIREMENTS = ['home-assistant-frontend==20190203.0']
DOMAIN = 'frontend'
@@ -195,6 +197,7 @@ def add_manifest_json_key(key, val):
async def async_setup(hass, config):
"""Set up the serving of the frontend."""
await async_setup_frontend_storage(hass)
hass.components.websocket_api.async_register_command(
WS_TYPE_GET_PANELS, websocket_get_panels, SCHEMA_GET_PANELS)
hass.components.websocket_api.async_register_command(