Compare commits

...

2 Commits

Author SHA1 Message Date
ff8ae160bb Fix empty prStr 2023-10-06 01:29:38 +02:00
658e80a8f4 Change dependencies to variable major version 2023-10-02 03:21:51 +02:00
5 changed files with 9 additions and 7 deletions

View File

@ -139,6 +139,8 @@ class HonCommand:
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(

View File

@ -6,7 +6,7 @@ CLIENT_ID = (
"3MVG9QDx8IX8nP5T2Ha8ofvlmjLZl5L_gvfbT9."
"HJvpHGKoAS_dcMN8LYpTSYeVFCraUnV.2Ag1Ki7m4znVO6"
)
APP_VERSION = "2.1.2"
APP_VERSION = "2.3.5"
OS_VERSION = 31
OS = "android"
DEVICE_MODEL = "exynos9820"

View File

@ -18,7 +18,7 @@ class HonParameterFixed(HonParameter):
@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:

View File

@ -1,3 +1,3 @@
aiohttp~=3.8.5
yarl~=1.9.2
typing-extensions~=4.7.1
aiohttp~=3.8
yarl~=1.9
typing-extensions~=4.7

View File

@ -7,7 +7,7 @@ with open("README.md", "r", encoding="utf-8") as f:
setup(
name="pyhOn",
version="0.15.7",
version="0.15.9",
author="Andre Basche",
description="Control hOn devices with python",
long_description=long_description,
@ -21,7 +21,7 @@ setup(
packages=find_packages(),
include_package_data=True,
python_requires=">=3.10",
install_requires=["aiohttp~=3.8.5", "typing-extensions~=4.7.1", "yarl~=1.9.2"],
install_requires=["aiohttp~=3.8", "typing-extensions~=4.7", "yarl~=1.9"],
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Console",