From e575722dd324b3d8dbd8f7721b63328221ffab4f Mon Sep 17 00:00:00 2001 From: Vadym Melnychuk Date: Fri, 14 Jul 2023 11:30:17 +0300 Subject: [PATCH] cleanup --- pyhon/commands.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pyhon/commands.py b/pyhon/commands.py index 123362a..fe61129 100644 --- a/pyhon/commands.py +++ b/pyhon/commands.py @@ -128,11 +128,9 @@ class HonCommand: async def send_specific(self, param_names: List[str]) -> bool: params: Dict[str, str | float] = {} - - for key, parameter in self._parameters: + for key, parameter in self._parameters.items(): if key in param_names: params[key] = parameter.value - return await self.send_parameters(params) async def send_parameters(self, params: Dict[str, str | float]) -> bool: