Fix error when sending commands
This commit is contained in:
parent
69be63df2a
commit
04f19c4609
2 changed files with 4 additions and 5 deletions
|
@ -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
|
||||
|
|
2
setup.py
2
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,
|
||||
|
|
Loading…
Reference in a new issue