Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelveldt committed Feb 14, 2024
1 parent 0bd87af commit 31d2091
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 31d2091

Please sign in to comment.