mirror of
https://github.com/Andre0512/pyhOn.git
synced 2025-05-23 03:06:54 -04:00
Improve set parameters
This commit is contained in:
parent
22a98e1781
commit
b5af81b744
2 changed files with 5 additions and 1 deletions
|
@ -169,7 +169,9 @@ class HonAppliance:
|
|||
category = category.split(".")[-1].lower()
|
||||
categories[category] = result[0]
|
||||
if categories:
|
||||
return [list(categories.values())[-1]]
|
||||
if "setParameters" in categories:
|
||||
return [categories["setParameters"]]
|
||||
return [list(categories.values())[0]]
|
||||
return []
|
||||
|
||||
def _get_commands(self, data):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue