From 04f19c460993bf37706025d12a762f1c968a4591 Mon Sep 17 00:00:00 2001 From: Andre Basche Date: Mon, 17 Apr 2023 00:01:28 +0200 Subject: [PATCH] Fix error when sending commands --- pyhon/commands.py | 7 +++---- setup.py | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/pyhon/commands.py b/pyhon/commands.py index 33487a3..dc7bf0c 100644 --- a/pyhon/commands.py +++ b/pyhon/commands.py @@ -62,11 +62,10 @@ class HonCommand: return self._ancillary_parameters async def send(self) -> bool: - parameters = { - name: parameter.value for name, parameter in self._parameters.items() - } + params = {k: v.value for k, v in self._parameters.items()} + ancillary_params = {k: v.value for k, v in self._ancillary_parameters.items()} return await self._api.send_command( - self._appliance, self._name, parameters, self.ancillary_parameters + self._appliance, self._name, params, ancillary_params ) @property diff --git a/setup.py b/setup.py index 8695cd5..a6fe6cc 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ with open("README.md", "r") as f: setup( name="pyhOn", - version="0.8.0b5", + version="0.8.0b6", author="Andre Basche", description="Control hOn devices with python", long_description=long_description,