diff --git a/homeassistant/components/frontend/__init__.py b/homeassistant/components/frontend/__init__.py index b1cf267aa8..1e2bb8ab45 100644 --- a/homeassistant/components/frontend/__init__.py +++ b/homeassistant/components/frontend/__init__.py @@ -276,9 +276,11 @@ def async_setup(hass, config): if is_dev: hass.http.register_static_path("/home-assistant-polymer", repo_path) + hass.http.register_static_path( + "/static/translations", + os.path.join(repo_path, "build/translations")) sw_path = os.path.join(repo_path, "build/service_worker.js") static_path = os.path.join(repo_path, 'hass_frontend') - else: sw_path = os.path.join(frontend_path, "service_worker.js") static_path = frontend_path diff --git a/homeassistant/components/history.py b/homeassistant/components/history.py index c774d83873..55858dbe76 100644 --- a/homeassistant/components/history.py +++ b/homeassistant/components/history.py @@ -245,7 +245,7 @@ def async_setup(hass, config): hass.http.register_view(HistoryPeriodView(filters)) yield from hass.components.frontend.async_register_built_in_panel( - 'history', 'History', 'mdi:poll-box') + 'history', 'history', 'mdi:poll-box') return True diff --git a/homeassistant/components/logbook.py b/homeassistant/components/logbook.py index edd248d940..63a271acdd 100644 --- a/homeassistant/components/logbook.py +++ b/homeassistant/components/logbook.py @@ -101,7 +101,7 @@ def setup(hass, config): hass.http.register_view(LogbookView(config.get(DOMAIN, {}))) yield from hass.components.frontend.async_register_built_in_panel( - 'logbook', 'Logbook', 'mdi:format-list-bulleted-type') + 'logbook', 'logbook', 'mdi:format-list-bulleted-type') hass.services.async_register( DOMAIN, 'log', log_message, schema=LOG_MESSAGE_SCHEMA) diff --git a/homeassistant/components/map.py b/homeassistant/components/map.py index 4ad5201760..2b204e584c 100644 --- a/homeassistant/components/map.py +++ b/homeassistant/components/map.py @@ -13,5 +13,5 @@ DOMAIN = 'map' def async_setup(hass, config): """Register the built-in map panel.""" yield from hass.components.frontend.async_register_built_in_panel( - 'map', 'Map', 'mdi:account-location') + 'map', 'map', 'mdi:account-location') return True