Water Heater. Ability to send only mandatory parameters #14
@ -120,8 +120,9 @@ class HonCommand:
|
||||
self._parameters[name] = HonParameterProgram(name, self, "custom")
|
||||
|
||||
async def send(self, onlyMandatory: bool = False) -> bool:
|
||||
grouped_params = self.mandatory_parameter_groups \
|
||||
if onlyMandatory else self.parameter_groups
|
||||
grouped_params = (
|
||||
self.mandatory_parameter_groups if onlyMandatory else self.parameter_groups
|
||||
)
|
||||
params = grouped_params.get("parameters", {})
|
||||
ancillary_params = self.parameter_groups.get("ancillaryParameters", {})
|
||||
ancillary_params.pop("programRules", None)
|
||||
|
Loading…
Reference in New Issue
Block a user