Compare commits

..

2 Commits

Author SHA1 Message Date
744094dc07 Bump version 2023-07-19 19:55:10 +02:00
bf2015fcb9 Fix empty value in settings 2023-07-19 19:52:53 +02:00
2 changed files with 4 additions and 2 deletions

View File

@ -253,7 +253,9 @@ class HonAppliance:
if not (command := self.commands.get(command_name)):
return
for key in command.setting_keys:
if (new := self.attributes.get("parameters", {}).get(key)) is None:
if (
new := self.attributes.get("parameters", {}).get(key)
) is None or new.value == "":
continue
setting = command.settings[key]
try:

View File

@ -7,7 +7,7 @@ with open("README.md", "r") as f:
setup(
name="pyhOn",
version="0.14.9",
version="0.14.10",
author="Andre Basche",
description="Control hOn devices with python",
long_description=long_description,