From 26528a731097f5ee0409a5286132a328fb4fe24a Mon Sep 17 00:00:00 2001 From: Andre Basche Date: Sat, 10 Jun 2023 06:40:55 +0200 Subject: [PATCH] Don't send optional program rules --- pyhon/commands.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pyhon/commands.py b/pyhon/commands.py index 5c45795..64f412c 100644 --- a/pyhon/commands.py +++ b/pyhon/commands.py @@ -111,6 +111,7 @@ class HonCommand: async def send(self) -> bool: params = self.parameter_groups.get("parameters", {}) ancillary_params = self.parameter_groups.get("ancillaryParameters", {}) + ancillary_params.pop("programRules", None) self.appliance.sync_to_params(self.name) result = await self.api.send_command( self._appliance, self._name, params, ancillary_params