Remove unnecessary instances of dict.keys() (#42518)

This commit is contained in:
springstan authored and GitHub committed 2020-10-28 20:43:48 +01:00
1 parent 6e43d489ca
commit a967f689c7
21 files changed
+25 -25

No files matched your search

+1 -1
View File
@@ -372,7 +372,7 @@ async def async_mount_local_lib_path(config_dir: str) -> str:
def _get_domains(hass: core.HomeAssistant, config: Dict[str, Any]) -> Set[str]:
"""Get domains of components to set up."""
# Filter out the repeating and common config section [homeassistant]
domains = {key.split(" ")[0] for key in config.keys() if key != core.DOMAIN}
domains = {key.split(" ")[0] for key in config if key != core.DOMAIN}
# Add config entry domains
if not hass.config.safe_mode: