From 80d332ddf1ccddea42cbab38a1ee85812a835134 Mon Sep 17 00:00:00 2001 From: Thibaut Date: Fri, 13 May 2022 12:36:08 +0200 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20send=20None=20value=20within=20?= =?UTF-8?q?Command=20parameter=20value=20in=20Overkiz=20integration=20(#71?= =?UTF-8?q?582)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- homeassistant/components/overkiz/executor.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/overkiz/executor.py b/homeassistant/components/overkiz/executor.py index 127851db36a..9bf7ef43b02 100644 --- a/homeassistant/components/overkiz/executor.py +++ b/homeassistant/components/overkiz/executor.py @@ -68,17 +68,18 @@ class OverkizExecutor: async def async_execute_command(self, command_name: str, *args: Any) -> None: """Execute device command in async context.""" + parameters = [arg for arg in args if arg is not None] # Set the execution duration to 0 seconds for RTS devices on supported commands # Default execution duration is 30 seconds and will block consecutive commands if ( self.device.protocol == Protocol.RTS and command_name not in COMMANDS_WITHOUT_DELAY ): - args = args + (0,) + parameters.append(0) exec_id = await self.coordinator.client.execute_command( self.device.device_url, - Command(command_name, list(args)), + Command(command_name, parameters), "Home Assistant", )