From 365a37b42d4a7206484eb0d3f69274195946889a Mon Sep 17 00:00:00 2001 From: Andre Basche Date: Sun, 7 May 2023 01:17:02 +0200 Subject: [PATCH] Fix send command error --- pyhon/commands.py | 4 ++-- setup.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pyhon/commands.py b/pyhon/commands.py index 7e59c2a..62a0007 100644 --- a/pyhon/commands.py +++ b/pyhon/commands.py @@ -85,8 +85,8 @@ class HonCommand: self._parameters[name] = HonParameterProgram(name, self, "custom") async def send(self) -> bool: - params = self.parameter_groups["parameters"] - ancillary_params = self.parameter_groups["ancillary_parameters"] + params = self.parameter_groups.get("parameters", {}) + ancillary_params = self.parameter_groups.get("ancillaryParameters", {}) return await self._api.send_command( self._appliance, self._name, params, ancillary_params ) diff --git a/setup.py b/setup.py index a59b069..5c30924 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ with open("README.md", "r") as f: setup( name="pyhOn", - version="0.10.2", + version="0.10.3", author="Andre Basche", description="Control hOn devices with python", long_description=long_description,