Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
365a37b42d | |||
2bde6bb61c |
@ -85,8 +85,8 @@ class HonCommand:
|
|||||||
self._parameters[name] = HonParameterProgram(name, self, "custom")
|
self._parameters[name] = HonParameterProgram(name, self, "custom")
|
||||||
|
|
||||||
async def send(self) -> bool:
|
async def send(self) -> bool:
|
||||||
params = self.parameter_groups["parameters"]
|
params = self.parameter_groups.get("parameters", {})
|
||||||
ancillary_params = self.parameter_groups["ancillary_parameters"]
|
ancillary_params = self.parameter_groups.get("ancillaryParameters", {})
|
||||||
return await self._api.send_command(
|
return await self._api.send_command(
|
||||||
self._appliance, self._name, params, ancillary_params
|
self._appliance, self._name, params, ancillary_params
|
||||||
)
|
)
|
||||||
|
@ -13,9 +13,9 @@ class HonParameterProgram(HonParameterEnum):
|
|||||||
super().__init__(key, {}, group)
|
super().__init__(key, {}, group)
|
||||||
self._command = command
|
self._command = command
|
||||||
if "PROGRAM" in command.category:
|
if "PROGRAM" in command.category:
|
||||||
self._value: str = command.category.split(".")[-1].lower()
|
self._value = command.category.split(".")[-1].lower()
|
||||||
else:
|
else:
|
||||||
self._value: str = command.category
|
self._value = command.category
|
||||||
self._programs: Dict[str, "HonCommand"] = command.categories
|
self._programs: Dict[str, "HonCommand"] = command.categories
|
||||||
self._typology: str = "enum"
|
self._typology: str = "enum"
|
||||||
|
|
||||||
|
2
setup.py
2
setup.py
@ -7,7 +7,7 @@ with open("README.md", "r") as f:
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="pyhOn",
|
name="pyhOn",
|
||||||
version="0.10.2",
|
version="0.10.3",
|
||||||
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,
|
||||||
|
Reference in New Issue
Block a user