Skip to content

[Bug]: Media Player not created #36

Description

@BuergerJulian

Home Assistant Version

2026.9.0

Integration Version

4.0.2

Bug Description

Media Player not created

Relevant Log Output

Logger: homeassistant.components.media_player
Quelle: helpers/entity_platform.py:971
Integration: Mediaplayer (Dokumentation, Probleme)
Erstmals aufgetreten: 18:57:06 (7 Vorkommnisse)
Zuletzt protokolliert: 19:07:29

Error adding entity None for domain media_player with platform toniebox
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 190, in report_usage
    integration_frame = get_integration_frame(
        exclude_integrations=exclude_integrations
    )
  File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 128, in get_integration_frame
    raise MissingIntegrationFrame
homeassistant.helpers.frame.MissingIntegrationFrame

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 971, in _async_add_entity
    device = dev_reg.async_get_or_create(
        config_entry_id=self.config_entry.entry_id,
    ...<8 lines>...
        ),
    )
  File "/usr/src/homeassistant/homeassistant/helpers/device_registry.py", line 2303, in async_get_or_create
    report_usage(
    ~~~~~~~~~~~~^
        "calls `device_registry.async_get_or_create` with a deprecated "
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<3 lines>...
        breaks_in_ha_version=version,
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 218, in report_usage
    _report_usage_partial()
    ~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 254, in _report_usage
    _report_usage_no_integration(
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
        what, core_behavior, breaks_in_ha_version, integration_frame_err
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 386, in _report_usage_no_integration
    raise RuntimeError(msg) from err
RuntimeError: Detected code that calls `device_registry.async_get_or_create` with a deprecated `via_device` parameter; use `via_device_id` instead. Please report this issue

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions