From 31d2091d2854fa3004fbf3676574d25cf711eece Mon Sep 17 00:00:00 2001 From: Marcel van der Veldt Date: Wed, 14 Feb 2024 18:45:58 +0100 Subject: [PATCH] fix test --- tests/test_config_flow.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_config_flow.py b/tests/test_config_flow.py index b181d352..3c0e4502 100644 --- a/tests/test_config_flow.py +++ b/tests/test_config_flow.py @@ -9,10 +9,10 @@ # pylint: disable=wrong-import-order from homeassistant.components import zeroconf -from homeassistant.data_entry_flow import InvalidData from homeassistant.helpers.selector import ConversationAgentSelector from music_assistant.client.exceptions import CannotConnect, InvalidServerVersion from pytest_homeassistant_custom_component.common import MockConfigEntry +from voluptuous.error import MultipleInvalid from custom_components.mass import config_flow from custom_components.mass.config_flow import ( @@ -238,7 +238,7 @@ async def test_flow_discovery_confirm_creates_config_entry_with_none_type_conver m_mass, hass ): """Test the config entry is successfully created.""" - with pytest.raises(InvalidData): + with pytest.raises(MultipleInvalid): config_flow.ConfigFlow.data = VALID_CONFIG _result = await hass.config_entries.flow.async_init( config_flow.DOMAIN, context={"source": "zeroconf"}, data=ZEROCONF_DATA