reformatting

This commit is contained in:
Vadym Melnychuk 2023-07-12 09:47:53 +03:00
parent ecdb976c41
commit 68b6b7b24d

View File

@ -120,8 +120,9 @@ class HonCommand:
self._parameters[name] = HonParameterProgram(name, self, "custom") self._parameters[name] = HonParameterProgram(name, self, "custom")
async def send(self, onlyMandatory: bool = False) -> bool: async def send(self, onlyMandatory: bool = False) -> bool:
grouped_params = self.mandatory_parameter_groups \ grouped_params = (
if onlyMandatory else self.parameter_groups self.mandatory_parameter_groups if onlyMandatory else self.parameter_groups
)
params = grouped_params.get("parameters", {}) params = grouped_params.get("parameters", {})
ancillary_params = self.parameter_groups.get("ancillaryParameters", {}) ancillary_params = self.parameter_groups.get("ancillaryParameters", {})
ancillary_params.pop("programRules", None) ancillary_params.pop("programRules", None)