Skip to content

Commit 1c935d9

Browse files
author
Justin Dybedahl
authored
Swap async_get_registry with async_get
Swap async_get_registry with async_get and fixes the errors in 2023.5.0b1
1 parent b7c6c16 commit 1c935d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

custom_components/redfin/config_flow.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import voluptuous as vol
1010
from homeassistant.helpers.entity_registry import (
1111
async_entries_for_config_entry,
12-
async_get_registry,
12+
async_get,
1313
)
1414

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

0 commit comments

Comments
 (0)