Skip to content

Commit

Permalink
Fix empty prStr
Browse files Browse the repository at this point in the history
  • Loading branch information
Andre0512 committed Oct 5, 2023
1 parent 658e80a commit ff8ae16
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions pyhon/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@ async def send_specific(self, param_names: List[str]) -> bool:
async def send_parameters(self, params: Dict[str, str | float]) -> bool:
ancillary_params = self.parameter_groups.get("ancillaryParameters", {})
ancillary_params.pop("programRules", None)
if "prStr" in params:
params["prStr"] = self._category_name.upper()
self.appliance.sync_command_to_params(self.name)
try:
result = await self.api.send_command(
Expand Down
2 changes: 1 addition & 1 deletion pyhon/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"3MVG9QDx8IX8nP5T2Ha8ofvlmjLZl5L_gvfbT9."
"HJvpHGKoAS_dcMN8LYpTSYeVFCraUnV.2Ag1Ki7m4znVO6"
)
APP_VERSION = "2.1.2"
APP_VERSION = "2.3.5"
OS_VERSION = 31
OS = "android"
DEVICE_MODEL = "exynos9820"
Expand Down
2 changes: 1 addition & 1 deletion pyhon/parameter/fixed.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def __repr__(self) -> str:

@property
def value(self) -> str | float:
return self._value if self._value is not None else "0"
return self._value if self._value != "" else "0"

@value.setter
def value(self, value: str | float) -> None:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

setup(
name="pyhOn",
version="0.15.8",
version="0.15.9",
author="Andre Basche",
description="Control hOn devices with python",
long_description=long_description,
Expand Down

0 comments on commit ff8ae16

Please sign in to comment.