Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Browsing yi-hack media source in HA throws error #105

Closed
Failure404 opened this issue Jan 9, 2023 · 4 comments
Closed

Browsing yi-hack media source in HA throws error #105

Failure404 opened this issue Jan 9, 2023 · 4 comments
Labels

Comments

@Failure404
Copy link

Failure404 commented Jan 9, 2023

Hi I am experiencing this error when I try to browse yi-hack media files in Home Assistant:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 27, in _handle_async_response
    await func(hass, connection, msg)
  File "/usr/src/homeassistant/homeassistant/components/media_source/__init__.py", line 170, in websocket_browse_media
    media = await async_browse_media(hass, msg.get("media_content_id", ""))
  File "/usr/src/homeassistant/homeassistant/components/media_source/__init__.py", line 121, in async_browse_media
    item = await _get_media_item(hass, media_content_id, None).async_browse()
  File "/usr/src/homeassistant/homeassistant/components/media_source/models.py", line 79, in async_browse
    return await self.async_media_source().async_browse_media(self)
  File "/config/custom_components/yi_hack/media_source.py", line 71, in async_browse_media
    device_registry = await self.hass.helpers.device_registry.async_get()
TypeError: async_get() missing 1 required positional argument: 'hass'
@roleoroleo
Copy link
Owner

Probably it's a mismatch with the versions.
What version of ha are you using?

@Failure404
Copy link
Author

Sorry for not mentioning it, I am using 2023.1.2 now and the problem also occured on 2023.1.1.

@roleoroleo
Copy link
Owner

Now i remember.
The problem is fixed here 9910c44 but not yes released.

Copy link

github-actions bot commented Apr 1, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the Stale label Apr 1, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants