Skip to content

Commit

Permalink
Fix error when sending commands
Browse files Browse the repository at this point in the history
  • Loading branch information
Andre0512 committed Apr 16, 2023
1 parent 69be63d commit 04f19c4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions pyhon/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,10 @@ def ancillary_parameters(self) -> Dict[str, HonParameter]:
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
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

setup(
name="pyhOn",
version="0.8.0b5",
version="0.8.0b6",
author="Andre Basche",
description="Control hOn devices with python",
long_description=long_description,
Expand Down

0 comments on commit 04f19c4

Please sign in to comment.