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

Integration uses deprecated async_get_registry #170

Closed
tankdeer opened this issue Jun 2, 2022 · 6 comments
Closed

Integration uses deprecated async_get_registry #170

tankdeer opened this issue Jun 2, 2022 · 6 comments
Labels
bug Something isn't working

Comments

@tankdeer
Copy link

tankdeer commented Jun 2, 2022

I am getting warnings in my log about using a deprecated method.

2022-06-01 13:15:10 WARNING (MainThread) [homeassistant.helpers.frame] Detected integration that uses deprecated 'async_get_registry' to access entity registry, use async_get instead. Please report issue to the custom component author for blueiris using this method at custom_components/blueiris/managers/home_assistant.py, line 96: self._entity_registry = await er_async_get_registry(self._hass)

Hopefully this can get addressed despite not technically being maintained anymore.

@kramttocs kramttocs added the bug Something isn't working label Jun 2, 2022
@kramttocs
Copy link
Collaborator

Thanks. Confirmed the same (seeing it with a few of the integrations I am using).
I'll get this looked at.

@elad-bar
Copy link
Owner

elad-bar commented Jun 2, 2022

@kramttocs, I cloned the fix from other components created with the same boilerplate (v1.0.13)

@kramttocs
Copy link
Collaborator

Thanks @elad-bar !

@Kh3nsu
Copy link

Kh3nsu commented Jun 19, 2022

Hello I just installed v1.0.14, sadly im still receiving those errors in my log?
Detected integration that uses deprecated async_get_registry to access entity registry, use async_get instead. Please report issue to the custom component author for None using this method at custom_components/None/managers/home_assistant.py, line 96: self._entity_registry = await er_async_get_registry(self._hass)

@kramttocs
Copy link
Collaborator

Are you sure it's from blueiris? The error says 'None' for the component name.

@Kh3nsu
Copy link

Kh3nsu commented Jun 19, 2022

Are you sure it's from blueiris? The error says 'None' for the component name.

Hello,

sorry my bad, it was from blueiris indeed but somehow when I updated it just moved the old version to folder "None" and created a new blueiris folder instead of replacing the old one. I just deleted the None folder and its gone. Stupid me could get on this on my own....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants