Remove unnecessary instances of dict.keys() (#42518)
This commit is contained in:
parent
6e43d489ca
commit
a967f689c7
21 changed files with 25 additions and 25 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue