8000 Exception importing homeassistant.components.openai_conversation.config_flow · Issue #145860 · home-assistant/core · GitHub
[go: up one dir, main page]

Skip to content
Exception importing homeassistant.components.openai_conversation.config_flow #145860
@mercuryin

Description

@mercuryin

The problem

Hello Home Assistant Team,
I'm encountering an issue when trying to add the official "OpenAI Conversation" integration on the latest beta version of Home Assistan.

When I navigate to Settings > Devices & Services > Add Integration and select "OpenAI Conversation", the config flow fails to load, and I receive a "Config flow could not be loaded" error in the UI.

What version of Home Assistant Core has the issue?

core-2025.6.0b2

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

OPENAI CONVERSATION

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

Anything in the logs that might be useful for us?

The Home Assistant logs show the following traceback:
Logger: homeassistant.loader
Source: loader.py:1250
First occurred: [Time of first occurrence] ([Number] occurrences)
Last logged: [Time of last occurrence]

Unexpected exception importing platform homeassistant.components.openai_conversation.config_flow
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1250, in _load_platform
    cache[full_name] = self._import_platform(platform_name)
                       ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1282, in _import_platform
    return importlib.import_module(f"{self.pkg_path}.{platform_name}")
           ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/util/loop.py", line 201, in protected_loop_func
    return func(*args, **kwargs)
  File "/usr/local/lib/python3.13/importlib/__init__.py", line 88, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1310, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 1026, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/usr/src/homeassistant/homeassistant/components/openai_conversation/__init__.py", line 11, in <module>
    from openai.types.responses import (
    ...<7 lines>...
    )
  File "/usr/local/lib/python3.13/site-packages/openai/types/responses/__init__.py", line 5, in <module>
    from .tool import Tool as Tool
  File "/usr/local/lib/python3.13/site-packages/openai/types/responses/tool.py", line 15, in <module>
    Union[FileSearchTool, FunctionTool, ComputerTool, WebSearchTool], PropertyInfo(discriminator="type")
                                                                      ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
TypeError: PropertyInfo.__init__() got an unexpected keyword argument 'discriminator'

Additional information

No response

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0