From 7ac2908671f8552b4292696be3908132b90c74c1 Mon Sep 17 00:00:00 2001 From: Vadym Melnychuk Date: Tue, 11 Jul 2023 17:49:49 +0300 Subject: [PATCH] formatting --- pyhon/appliances/wh.py | 2 +- pyhon/commands.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pyhon/appliances/wh.py b/pyhon/appliances/wh.py index 9016646..3af1bd0 100644 --- a/pyhon/appliances/wh.py +++ b/pyhon/appliances/wh.py @@ -7,4 +7,4 @@ class Appliance(ApplianceBase): data = super().attributes(data) data["active"] = data["parameters"]["onOffStatus"] == "1" - return data \ No newline at end of file + return data diff --git a/pyhon/commands.py b/pyhon/commands.py index 897d4b4..2132705 100644 --- a/pyhon/commands.py +++ b/pyhon/commands.py @@ -75,14 +75,14 @@ class HonCommand: for name, parameter in self._parameters.items(): result.setdefault(parameter.group, {})[name] = parameter.intern_value return result - + @property def mandatory_parameter_groups(self) -> Dict[str, Dict[str, Union[str, float]]]: result: Dict[str, Dict[str, Union[str, float]]] = {} for name, parameter in self._parameters.items(): if parameter.mandatory: result.setdefault(parameter.group, {})[name] = parameter.intern_value - return result + return result @property def parameter_value(self) -> Dict[str, Union[str, float]]: