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

Setup failed for custom integration steam_wishlist #16

Closed
justinmbrock opened this issue May 4, 2023 · 2 comments
Closed

Setup failed for custom integration steam_wishlist #16

justinmbrock opened this issue May 4, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@justinmbrock
Copy link

justinmbrock commented May 4, 2023

Describe the bug
Setup fails with the latest version of Home Assistant due to a depreciated call (async_get_registry). This is from the logs:

Logger: homeassistant.setup
Source: setup.py:214
First occurred: 9:07:25 PM (1 occurrences)
Last logged: 9:07:25 PM

Setup failed for custom integration steam_wishlist: Unable to import component: cannot import name 'async_get_registry' from 'homeassistant.helpers.entity_registry' (/usr/src/homeassistant/homeassistant/helpers/entity_registry.py)

This is an old depreciation message from last year for another integration I found:

2022-06-13 22:50:33 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 shelly using this method at custom_components/shelly/__init__.py, line 356: await self.hass.helpers.entity_registry.async_get_registry()

To Reproduce
Steps to reproduce the behavior:

  1. Install the integration
  2. Restart HA
  3. See error in the log

Expected behavior
Integration setup completes and Steam Wishlist sensors are created.

Screenshots

Home Assistant Version:
Home Assistant 2023.5.0
Supervisor 2023.04.1
Operating System 10.1
Frontend 20230503.1 - latest

Custom Component Version:
v2.2.3

Additional context

@justinmbrock justinmbrock added the bug Something isn't working label May 4, 2023
@boralyl
Copy link
Owner

boralyl commented May 4, 2023

Thank you for reporting, I somehow missed this 👍

@boralyl
Copy link
Owner

boralyl commented May 4, 2023

This should be updated in v2.2.4.

@boralyl boralyl closed this as completed May 4, 2023
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

2 participants