Consolidate config panels (#8857)

* Remove automation panel registration

* Move Z-Wave config API to config.zwave

* Remove no longer needed test

* Lint

* Update frontend
This commit is contained in:
Paulus Schoutsen authored and GitHub committed 2017-08-06 12:05:34 -07:00
1 parent 4e79517971
commit 9575cbde09
23 files changed
+462 -483

No files matched your search

+1 -16
View File
@@ -16,7 +16,7 @@ import unittest
from unittest.mock import patch, MagicMock
from tests.common import (
get_test_home_assistant, async_fire_time_changed, mock_http_component)
get_test_home_assistant, async_fire_time_changed)
from tests.mock.zwave import MockNetwork, MockNode, MockValue, MockEntityValues
@@ -120,21 +120,6 @@ def test_auto_heal_disabled(hass, mock_openzwave):
assert not network.heal.called
@asyncio.coroutine
def test_frontend_panel_register(hass, mock_openzwave):
"""Test network auto-heal disabled."""
mock_http_component(hass)
hass.config.components |= set(['frontend'])
with patch('homeassistant.components.zwave.'
'register_built_in_panel') as mock_register:
assert (yield from async_setup_component(hass, 'zwave', {
'zwave': {
'autoheal': False,
}}))
assert mock_register.called
assert len(mock_register.mock_calls) == 1
@asyncio.coroutine
def test_setup_platform(hass, mock_openzwave):
"""Test invalid device config."""