yi-hack_ha_integration icon indicating copy to clipboard operation
yi-hack_ha_integration copied to clipboard

Media viewer in Home Assistant is broken due to Unknown Error

Open MiguelViana7 opened this issue 1 year ago • 9 comments

image

I've tried the steps in https://github.com/roleoroleo/yi-hack-Allwinner-v2/issues/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 avatar Jun 17 '24 14:06 MiguelViana7

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/

MiguelViana7 avatar Jun 18 '24 09:06 MiguelViana7

Same Here. I tried the suggested workaround without sucess

adolfonovo avatar Jun 20 '24 13:06 adolfonovo

Same for me. HA 2024.6.3

bedson87 avatar Jun 21 '24 10:06 bedson87

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

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

adolfonovo avatar Jun 24 '24 06:06 adolfonovo

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

MiguelViana7 avatar Jun 24 '24 10:06 MiguelViana7

PR merged.

roleoroleo avatar Jun 29 '24 14:06 roleoroleo

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.

javiges avatar Aug 06 '24 12:08 javiges

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.

adolfonovo avatar Aug 06 '24 13:08 adolfonovo

This issue is fixed in 0.5.1

roleoroleo avatar Aug 07 '24 08:08 roleoroleo

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[bot] avatar Nov 06 '24 02:11 github-actions[bot]