From 7dfb8dda0ac5c23cf453ce927f9edda76ddcc099 Mon Sep 17 00:00:00 2001 From: Olliver Schinagl Date: Wed, 16 Nov 2022 13:30:05 +0100 Subject: [PATCH] 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 Signed-off-by: Olliver Schinagl --- homeassistant/components/rest_command/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/rest_command/__init__.py b/homeassistant/components/rest_command/__init__.py index 70f887cf896..c26f9711e1f 100644 --- a/homeassistant/components/rest_command/__init__.py +++ b/homeassistant/components/rest_command/__init__.py @@ -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