Skip to content

Commit bddbf9c

Browse files
authored
Simplify current ids callback in config entries (home-assistant#154082)
1 parent 64f4856 commit bddbf9c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

homeassistant/config_entries.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3031,8 +3031,9 @@ def _async_current_ids(self, include_ignore: bool = True) -> set[str | None]:
30313031
"""Return current unique IDs."""
30323032
return {
30333033
entry.unique_id
3034-
for entry in self.hass.config_entries.async_entries(self.handler)
3035-
if include_ignore or entry.source != SOURCE_IGNORE
3034+
for entry in self.hass.config_entries.async_entries(
3035+
self.handler, include_ignore=include_ignore
3036+
)
30363037
}
30373038

30383039
@callback

0 commit comments

Comments
 (0)