Keep rest_command interface consistent (#82116)

rest_command: Keep interface consistent

This is a tiny cosmetic patch, where we keep the variable names of the
interface more consistent, to avoid having to wonder "is it a name or a
command?".

Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>

Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
This commit is contained in:
Olliver Schinagl 2022-11-16 13:30:05 +01:00 committed by GitHub
parent 9098592257
commit 7dfb8dda0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -154,7 +154,7 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
# register services
hass.services.async_register(DOMAIN, name, async_service_handler)
for command, command_config in config[DOMAIN].items():
async_register_rest_command(command, command_config)
for name, command_config in config[DOMAIN].items():
async_register_rest_command(name, command_config)
return True