mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
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:
parent
9098592257
commit
7dfb8dda0a
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user