Skip to content

Commit

Permalink
Merge pull request #10 from Madj42/main
Browse files Browse the repository at this point in the history
Swap async_get_registry with async_get
  • Loading branch information
dreed47 authored May 4, 2023
2 parents b7c6c16 + 1c935d9 commit b4938cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/redfin/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import voluptuous as vol
from homeassistant.helpers.entity_registry import (
async_entries_for_config_entry,
async_get_registry,
async_get,
)

from .const import (CONF_PROPERTIES, DOMAIN, DEFAULT_SCAN_INTERVAL, DEFAULT_NAME,
Expand Down Expand Up @@ -111,7 +111,7 @@ async def async_step_init(
errors: Dict[str, str] = {}
# Grab all configured propert id's from the entity registry so we can populate the
# multi-select dropdown that will allow a user to remove a property.
entity_registry = await async_get_registry(self.hass)
entity_registry = await async_get(self.hass)
entries = async_entries_for_config_entry(
entity_registry, self.config_entry.entry_id
)
Expand Down

0 comments on commit b4938cb

Please sign in to comment.