Skip to content

Commit

Permalink
Consolidate frontend (home-assistant#9915)
Browse files Browse the repository at this point in the history
* Consolidate frontend

* Remove home-assistant-polymer submodule

* Convert to using a pypi package for frontend

* fix release script

* Lint

* Remove unused file

* Remove frontend related scripts

* Move hass_frontend to frontend REQUIREMENTS

* Fix tests

* lint

* Address comments

* Lint + fix tests in py34

* Fix py34 tests again

* fix typo
  • Loading branch information
balloob authored Oct 25, 2017
1 parent 29fb65b commit 2bdad53
Show file tree
Hide file tree
Showing 169 changed files with 369 additions and 5,393 deletions.
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
[submodule "homeassistant/components/frontend/www_static/home-assistant-polymer"]
path = homeassistant/components/frontend/www_static/home-assistant-polymer
url = https://github.com/home-assistant/home-assistant-polymer.git
1 change: 0 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
include README.rst
include LICENSE.md
graft homeassistant
prune homeassistant/components/frontend/www_static/home-assistant-polymer
recursive-exclude * *.py[co]
4 changes: 2 additions & 2 deletions homeassistant/components/config/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
from homeassistant.const import EVENT_COMPONENT_LOADED, CONF_ID
from homeassistant.setup import (
async_prepare_setup_platform, ATTR_COMPONENT)
from homeassistant.components.frontend import register_built_in_panel
from homeassistant.components.http import HomeAssistantView
from homeassistant.util.yaml import load_yaml, dump

Expand All @@ -21,7 +20,8 @@
@asyncio.coroutine
def async_setup(hass, config):
"""Set up the config component."""
register_built_in_panel(hass, 'config', 'Configuration', 'mdi:settings')
yield from hass.components.frontend.async_register_built_in_panel(
'config', 'Configuration', 'mdi:settings')

@asyncio.coroutine
def setup_panel(panel_name):
Expand Down
Loading

0 comments on commit 2bdad53

Please sign in to comment.