Fix exception in hunterdouglas_powerview with ignored config entry (#35482)

This commit is contained in:
J. Nick Koston authored and GitHub committed 2020-05-10 22:06:31 -07:00
1 parent a6d587b6cd
commit 87e0f04515
2 files changed
+7 -2

No files matched your search

@@ -126,7 +126,9 @@ class ConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
def _host_already_configured(self, host):
"""See if we already have a hub with the host address configured."""
existing_hosts = {
entry.data[CONF_HOST] for entry in self._async_current_entries()
entry.data[CONF_HOST]
for entry in self._async_current_entries()
if CONF_HOST in entry.data
}
return host in existing_hosts