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

Media viewer in Home Assistant is broken due to Unknown Error #154

Open
MiguelViana7 opened this issue Jun 17, 2024 · 9 comments
Open

Media viewer in Home Assistant is broken due to Unknown Error #154

MiguelViana7 opened this issue Jun 17, 2024 · 9 comments

Comments

@MiguelViana7
Copy link

MiguelViana7 commented Jun 17, 2024

image

I've tried the steps in roleoroleo/yi-hack-Allwinner-v2#380 to no avail, I've restarted both Home Assistant and the Camera, the motion events are viewable in the Yi-Hack web portal. Camera is running yi-hack-MStar

@MiguelViana7
Copy link
Author

MiguelViana7 commented Jun 18, 2024

Seems like I have this error in my logs

WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'yi_hack' accesses hass.helpers.device_registry. This is deprecated and will stop working in Home Assistant 2024.11, it should be updated to import functions used from device_registry directly at custom_components/yi_hack/media_source.py, line 71: device_registry = self.hass.helpers.device_registry.async_get(self.hass), please create a bug report at https://github.com/roleoroleo/yi-hack_ha_integration/issues

I looked into it and this is the reference I found: https://developers.home-assistant.io/blog/2024/03/30/deprecate-hass-helpers/

@adolfonovo
Copy link

Same Here. I tried the suggested workaround without sucess

@bedson87
Copy link

Same for me. HA 2024.6.3

@adolfonovo
Copy link

https://github.com/roleoroleo/yi-hack_ha_integration/pull/153/files

Making the changes suggested in that PR. the problems dissapears.

@MiguelViana7
Copy link
Author

Can confirm that making the changes in the PR fixed my issues as well, thank you for sharing!

@roleoroleo
Copy link
Owner

PR merged.

@javiges
Copy link

javiges commented Aug 6, 2024

Puedo confirmar que realizar los cambios en el PR también solucionó mis problemas, ¡gracias por compartir!

Can you explain to me how to make it work? Copy that code into the media_source.py file? Thank you very much for your help, I'm a newbie and I don't know how to fix it.

@adolfonovo
Copy link

Puedo confirmar que realizar los cambios en el PR también solucionó mis problemas, ¡gracias por compartir!

Can you explain to me how to make it work? Copy that code into the media_source.py file? Thank you very much for your help, I'm a newbie and I don't know how to fix it.

Just change the file in
https://github.com/roleoroleo/yi-hack_ha_integration/pull/153/files

Change the code in red instead of the code un green. Use Amy extensión for file management in HA.

@roleoroleo
Copy link
Owner

This issue is fixed in 0.5.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants