aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pyhon/commands.py2
-rw-r--r--pyhon/const.py2
-rw-r--r--pyhon/parameter/fixed.py2
-rw-r--r--setup.py2
4 files changed, 5 insertions, 3 deletions
diff --git a/pyhon/commands.py b/pyhon/commands.py
index a305d78..68df63a 100644
--- a/pyhon/commands.py
+++ b/pyhon/commands.py
@@ -139,6 +139,8 @@ class HonCommand:
139 async def send_parameters(self, params: Dict[str, str | float]) -> bool: 139 async def send_parameters(self, params: Dict[str, str | float]) -> bool:
140 ancillary_params = self.parameter_groups.get("ancillaryParameters", {}) 140 ancillary_params = self.parameter_groups.get("ancillaryParameters", {})
141 ancillary_params.pop("programRules", None) 141 ancillary_params.pop("programRules", None)
142 if "prStr" in params:
143 params["prStr"] = self._category_name.upper()
142 self.appliance.sync_command_to_params(self.name) 144 self.appliance.sync_command_to_params(self.name)
143 try: 145 try:
144 result = await self.api.send_command( 146 result = await self.api.send_command(
diff --git a/pyhon/const.py b/pyhon/const.py
index 4f97435..8d1fd26 100644
--- a/pyhon/const.py
+++ b/pyhon/const.py
@@ -6,7 +6,7 @@ CLIENT_ID = (
6 "3MVG9QDx8IX8nP5T2Ha8ofvlmjLZl5L_gvfbT9." 6 "3MVG9QDx8IX8nP5T2Ha8ofvlmjLZl5L_gvfbT9."
7 "HJvpHGKoAS_dcMN8LYpTSYeVFCraUnV.2Ag1Ki7m4znVO6" 7 "HJvpHGKoAS_dcMN8LYpTSYeVFCraUnV.2Ag1Ki7m4znVO6"
8) 8)
9APP_VERSION = "2.1.2" 9APP_VERSION = "2.3.5"
10OS_VERSION = 31 10OS_VERSION = 31
11OS = "android" 11OS = "android"
12DEVICE_MODEL = "exynos9820" 12DEVICE_MODEL = "exynos9820"
diff --git a/pyhon/parameter/fixed.py b/pyhon/parameter/fixed.py
index 125ecd2..67a3056 100644
--- a/pyhon/parameter/fixed.py
+++ b/pyhon/parameter/fixed.py
@@ -18,7 +18,7 @@ class HonParameterFixed(HonParameter):
18 18
19 @property 19 @property
20 def value(self) -> str | float: 20 def value(self) -> str | float:
21 return self._value if self._value is not None else "0" 21 return self._value if self._value != "" else "0"
22 22
23 @value.setter 23 @value.setter
24 def value(self, value: str | float) -> None: 24 def value(self, value: str | float) -> None:
diff --git a/setup.py b/setup.py
index 1d057f1..e12972d 100644
--- a/setup.py
+++ b/setup.py
@@ -7,7 +7,7 @@ with open("README.md", "r", encoding="utf-8") as f:
7 7
8setup( 8setup(
9 name="pyhOn", 9 name="pyhOn",
10 version="0.15.8", 10 version="0.15.9",
11 author="Andre Basche", 11 author="Andre Basche",
12 description="Control hOn devices with python", 12 description="Control hOn devices with python",
13 long_description=long_description, 13 long_description=long_description,