Enumerate openai.Models to validate config (#99438)

This commit is contained in:
Joseph 2023-11-24 04:14:44 -08:00 committed by GitHub
parent 62473936e2
commit df025b5993
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 6 deletions

View file

@ -140,7 +140,7 @@ async def test_template_error(
},
)
with patch(
"openai.Engine.list",
"openai.Model.list",
), patch("openai.ChatCompletion.acreate"):
await hass.config_entries.async_setup(mock_config_entry.entry_id)
await hass.async_block_till_done()