OpenAI: Ignore devices without a name (#87558)
Ignore devices without a name
This commit is contained in:
parent
ea4e2ab4aa
commit
400c88a1cc
2 changed files with 8 additions and 1 deletions
|
@ -69,6 +69,13 @@ async def test_default_prompt(hass, mock_init_component):
|
|||
device_reg.async_update_device(
|
||||
device.id, disabled_by=device_registry.DeviceEntryDisabler.USER
|
||||
)
|
||||
device = device_reg.async_get_or_create(
|
||||
config_entry_id="1234",
|
||||
connections={("test", "9876-no-name")},
|
||||
manufacturer="Test Manufacturer NoName",
|
||||
model="Test Model NoName",
|
||||
suggested_area="Test Area 2",
|
||||
)
|
||||
|
||||
with patch("openai.Completion.acreate") as mock_create:
|
||||
result = await conversation.async_converse(hass, "hello", None, Context())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue