Fix error when sending commands

This commit is contained in:
Andre Basche 2023-04-17 00:01:28 +02:00
parent 69be63df2a
commit 04f19c4609
2 changed files with 4 additions and 5 deletions

View file

@ -62,11 +62,10 @@ class HonCommand:
return self._ancillary_parameters return self._ancillary_parameters
async def send(self) -> bool: async def send(self) -> bool:
parameters = { params = {k: v.value for k, v in self._parameters.items()}
name: parameter.value for name, parameter in self._parameters.items() ancillary_params = {k: v.value for k, v in self._ancillary_parameters.items()}
}
return await self._api.send_command( return await self._api.send_command(
self._appliance, self._name, parameters, self.ancillary_parameters self._appliance, self._name, params, ancillary_params
) )
@property @property

View file

@ -7,7 +7,7 @@ with open("README.md", "r") as f:
setup( setup(
name="pyhOn", name="pyhOn",
version="0.8.0b5", version="0.8.0b6",
author="Andre Basche", author="Andre Basche",
description="Control hOn devices with python", description="Control hOn devices with python",
long_description=long_description, long_description=long_description,