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

Update __init__.py with conversion of deprecated async_get_registry to async_get #153

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions custom_components/ecowitt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
)
from homeassistant.helpers.entity import Entity
from homeassistant.helpers.entity_registry import (
async_get_registry as async_get_entity_registry,
async_get as async_get_entity_registry,
)

from homeassistant.const import (
Expand Down Expand Up @@ -418,7 +418,7 @@ async def remove_entity(self, discovery_info=None):

if self._key in discovery_info.keys():

registry = await async_get_entity_registry(self.hass)
registry = async_get_entity_registry(self.hass)

entity_id = registry.async_get_entity_id(
discovery_info[self._key], DOMAIN, self.unique_id
Expand Down