populate potential models if the provided one was unavailable

This commit is contained in:
Alex O'Connell
2024-04-11 00:14:07 -04:00
parent 7262a2057a
commit e176e60727
3 changed files with 27 additions and 19 deletions

View File

@@ -215,8 +215,8 @@ async def test_validate_config_flow_ollama(mock_setup_entry, hass: HomeAssistant
# simulate incorrect settings on first try
validate_connections_mock.side_effect = [
("failed_to_connect", Exception("ConnectionError")),
(None, None)
("failed_to_connect", Exception("ConnectionError"), []),
(None, None, [])
]
result3 = await hass.config_entries.flow.async_configure(