def test_bad_config(): """Test good zwave mqtt config.""" with pytest.raises(vol.Invalid): valid_discovery_config("ozw", { "host": "test", "username": "******", "ssl": True })
def test_bad_config(): """Test good homematic config.""" with pytest.raises(vol.Invalid): valid_discovery_config("homematic", {"test": { "bla": "test", "port": 8080 }})
def test_good_config(): """Test good mqtt config.""" valid_discovery_config("mqtt", { "host": "test", "port": 3812, "username": "******", "ssl": True })
def test_good_config(): """Test good zwave js config.""" valid_discovery_config( "zwave_js", { "host": "test", "port": 3812 }, )
def test_good_config(): """Test good vlc telnet config.""" valid_discovery_config( "vlc_telnet", { "host": "test", "port": 3812, "password": "******" }, )
def test_good_config(): """Test good zwave mqtt config.""" valid_discovery_config( "ozw", { "host": "test", "port": 3812, "username": "******", "password": "******" }, )
def test_good_config(): """Test good deconz config.""" valid_discovery_config( "deconz", { "host": "test", "port": 3812, "api_key": "MY_api_KEY99", "serial": "xyz" }, )
def test_good_config(): """Test good homematic config.""" valid_discovery_config( "homematic", { "ip": { "host": "test", "port": 3812 }, "rf": { "host": "test", "port": 3712 } }, )
def test_bad_config(): """Test good unifi config.""" with pytest.raises(vol.Invalid): valid_discovery_config("unifi", {"host": "test"})
def test_bad_config(): """Test good deconz config.""" with pytest.raises(vol.Invalid): valid_discovery_config("deconz", {"host": "test", "port": 8080})
def test_good_config() -> None: """Test good motionEye config.""" valid_discovery_config("motioneye", {"url": "http://example.com:1234"})
def test_bad_config(): """Test good zwave js config.""" with pytest.raises(vol.Invalid): valid_discovery_config("zwave_js", {"host": "test"})
def test_bad_config() -> None: """Test good motionEye config.""" with pytest.raises(vol.Invalid): valid_discovery_config("motioneye", {})
def test_good_config(): """Test good unifi config.""" valid_discovery_config("unifi", {"host": "test", "port": 3812})
def test_bad_config(): """Test bad config.""" with pytest.raises(vol.Invalid): valid_discovery_config(SERVICE, {"host": "test"})
def test_bad_config(): """Test good adguard config.""" with pytest.raises(vol.Invalid): valid_discovery_config("almond", {"host": "test"})
def test_bad_config(): """Test bad vlc telnet config.""" with pytest.raises(vol.Invalid): valid_discovery_config("vlc_telnet", {"host": "test", "port": 8283})
def test_good_config(): """Test good deconz config.""" valid_discovery_config("almond", {"host": "test", "port": 3812})
def test_good_config(): """Test good config.""" valid_discovery_config(SERVICE, {"host": "test", "port": 3812})