From 3010bd4eb6fe45cc4b9e54782efa7864ccab2c9c Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Mon, 23 Mar 2020 10:32:56 +0100 Subject: [PATCH] Remove Home Panel Discovery (#1594) * Remove Home Panel Discovery * Remove related tests --- supervisor/discovery/services/home_panel.py | 11 ----------- tests/discovery/test_home_panel.py | 19 ------------------- 2 files changed, 30 deletions(-) delete mode 100644 supervisor/discovery/services/home_panel.py delete mode 100644 tests/discovery/test_home_panel.py diff --git a/supervisor/discovery/services/home_panel.py b/supervisor/discovery/services/home_panel.py deleted file mode 100644 index 147c2bdb4..000000000 --- a/supervisor/discovery/services/home_panel.py +++ /dev/null @@ -1,11 +0,0 @@ -"""Discovery service for Home Panel.""" -import voluptuous as vol - -from supervisor.validate import network_port - -from ..const import ATTR_HOST, ATTR_PORT - - -SCHEMA = vol.Schema( - {vol.Required(ATTR_HOST): vol.Coerce(str), vol.Required(ATTR_PORT): network_port} -) diff --git a/tests/discovery/test_home_panel.py b/tests/discovery/test_home_panel.py deleted file mode 100644 index cb768751c..000000000 --- a/tests/discovery/test_home_panel.py +++ /dev/null @@ -1,19 +0,0 @@ -"""Test adguard discovery.""" - -import voluptuous as vol -import pytest - -from supervisor.discovery.validate import valid_discovery_config - - -def test_good_config(): - """Test good deconz config.""" - - valid_discovery_config("home_panel", {"host": "test", "port": 3812}) - - -def test_bad_config(): - """Test good adguard config.""" - - with pytest.raises(vol.Invalid): - valid_discovery_config("home_panel", {"host": "test"})