diff options
author | Andre Basche <andre.basche@gmail.com> | 2023-10-06 01:28:47 +0200 |
---|---|---|
committer | Andre Basche <andre.basche@gmail.com> | 2023-10-06 01:29:38 +0200 |
commit | ff8ae160bba9108b9b0774c036bcc7a1a0ccc046 (patch) | |
tree | fafbd2b1e3c620dad876b19ffdea308b010aa041 | |
parent | 658e80a8f4eb8b240ff581013335619e387d1769 (diff) |
Fix empty prStrv0.15.9
-rw-r--r-- | pyhon/commands.py | 2 | ||||
-rw-r--r-- | pyhon/const.py | 2 | ||||
-rw-r--r-- | pyhon/parameter/fixed.py | 2 | ||||
-rw-r--r-- | setup.py | 2 |
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 | ) |
9 | APP_VERSION = "2.1.2" | 9 | APP_VERSION = "2.3.5" |
10 | OS_VERSION = 31 | 10 | OS_VERSION = 31 |
11 | OS = "android" | 11 | OS = "android" |
12 | DEVICE_MODEL = "exynos9820" | 12 | DEVICE_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: |
@@ -7,7 +7,7 @@ with open("README.md", "r", encoding="utf-8") as f: | |||
7 | 7 | ||
8 | setup( | 8 | setup( |
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, |