mirror of
https://github.com/home-assistant/supervisor.git
synced 2026-05-08 08:58:31 +01:00
615e68b29b
* Add discovery support for Almond * Fix docstring
20 lines
429 B
Python
20 lines
429 B
Python
"""Test adguard discovery."""
|
|
|
|
import voluptuous as vol
|
|
import pytest
|
|
|
|
from hassio.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"})
|