Address late review of Co2 signal (#53232)

This commit is contained in:
Daniel Hjelseth Høyer 2021-07-20 17:52:22 +02:00 committed by GitHub
parent 1fe2d0f9c8
commit 2b9b346a28
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -114,9 +114,7 @@ class ConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
else:
new_entry_type = TYPE_USE_HOME
for entry in self._async_current_entries(include_ignore=True):
if entry.source == config_entries.SOURCE_IGNORE:
continue
for entry in self._async_current_entries(include_ignore=False):
if (cur_entry_type := _get_entry_type(entry.data)) != new_entry_type:
continue