Warning logged for deprecation of async_get_registry
See original GitHub issueDescribe the bug
The use of async_get_registry
to access area, device and entity registries is deprecated as of Feb 2021 and will be removed in the future. With 2022.6 a warning will now be logged. async_get
should be used instead.
To avoid a lot of the same issues being created with the release of 2022.6 might be better to address this before its release.
To Reproduce Steps to reproduce the behavior:
- Update HA Core latest 2022.6 dev version
- Look at the logs for deprecation warning
System details
- Home-assistant (version): core-2022.6.0.dev20220524
- Hassio (Yes/No): Yes
- alexa_media (version from
const.py
or HA startup): 3.11.3 - alexapy (version from
pip show alexapy
or HA startup): 1.25.5 - Amazon 2FA is enabled (y/n). We will not debug login issues if unanswered: Yes
Logs Please provide logs. We’ll be most likely asking for them anyway.
2022-05-24 15:26:36 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 component author for alexa_media using this method at custom_components/alexa_media/__init__.py, line 625: device_registry = await dr.async_get_registry(hass)
Additional context Add any other context about the problem here.
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:5
Top Results From Across the Web
Continued support for async tests with done callbacks #1893
The deprecation message here is to alert the user that they've probably done something that has unpredictable results.
Read more >Starting Redo Apply -"Warning: OS async I/O limit 128 is lower ...
Symptoms. A warning message in Alert log asynchronous I/O limit warning of the form: Cause. Sign In ...
Read more >c# - Suppressing "warning CS4014: Because this call is not ...
Consider applying the 'await' operator to the result of the call. A simple example: static async Task WorkAsync() { await Task.Delay( ...
Read more >Compiler Warning (level 1) CS4014 | Microsoft Learn
The call to the async method starts an asynchronous task. However, because no await operator is applied, the program continues without waiting ...
Read more >Deprecated Engine Features - Docker Documentation
Deprecated Engine Features . This page provides an overview of features that are deprecated in Engine. Changes in packaging, and supported (Linux) ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
After some research, no need to bump HACS minimum version once this is fixed. https://github.com/home-assistant/core/commit/ed31cc363b3a457ed9249f7cf0386f2ec86e1850
This is unrelated to this issue. Please search as you have reduced functionality when you get this warning.
Seems like I was late to this party, anways here’s the log again
2022-05-26 19:22:34 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 component author for alexa_media using this method at custom_components/alexa_media/init.py, line 625: device_registry = await dr.async_get_registry(hass)