mirror of
https://github.com/home-assistant/core.git
synced 2025-11-14 21:40:16 +00:00
Enumerate openai.Models to validate config (#99438)
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user