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

This commit is contained in:
springstan 2020-10-28 20:43:48 +01:00 committed by GitHub
parent 6e43d489ca
commit a967f689c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
21 changed files with 25 additions and 25 deletions

View file

@ -114,6 +114,6 @@ async def async_setup(hass: HomeAssistantType, config: ConfigType) -> bool:
"Error running command: `%s`, return code: %s", cmd, process.returncode
)
for name in conf.keys():
for name in conf:
hass.services.async_register(DOMAIN, name, async_service_handler)
return True