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

change depricated async_get_registry() to async_get() #52

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

blatruwe
Copy link

@blatruwe blatruwe commented Jan 8, 2023

change depricated async_get_registry() to async_get()

change depricated async_get_registry() to async_get()
@blatruwe blatruwe requested a review from filipvh as a code owner January 8, 2023 16:11
@blatruwe
Copy link
Author

blatruwe commented Jan 8, 2023

fix for below warning:

WARNING (MainThread) [homeassistant.helpers.frame] Detected integration that uses deprecated async_get_registry to access device registry, use async_get instead. Please report issue to the custom integration author for nhc2 using this method at custom_components/nhc2/init.py, line 118: dev_reg = await hass.helpers.device_registry.async_get_registry()

corrected syntax
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

Successfully merging this pull request may close these issues.

1 participant