question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Warning logged for deprecation of async_get_registry

See original GitHub issue

Describe 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:

  1. Update HA Core latest 2022.6 dev version
  2. 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:closed
  • Created a year ago
  • Reactions:1
  • Comments:5

github_iconTop GitHub Comments

1reaction
alandtsecommented, May 28, 2022

After some research, no need to bump HACS minimum version once this is fixed. https://github.com/home-assistant/core/commit/ed31cc363b3a457ed9249f7cf0386f2ec86e1850

In addition: This warning appeares 1 sec before the reported message:

This is unrelated to this issue. Please search as you have reduced functionality when you get this warning.

1reaction
Petro31commented, May 26, 2022

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)

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found