mirror of
https://github.com/Andre0512/pyhOn.git
synced 2025-05-28 05:34:13 -04:00
Create cmd tool, full parameter name
This commit is contained in:
parent
ba054237f1
commit
83bb99a34e
6 changed files with 82 additions and 8 deletions
pyhon
|
@ -143,8 +143,17 @@ class HonDevice:
|
|||
@property
|
||||
def settings(self):
|
||||
result = {}
|
||||
for command in self._commands.values():
|
||||
result |= command.settings
|
||||
for name, command in self._commands.items():
|
||||
for key, setting in command.settings.items():
|
||||
result[f"{name}.{key}"] = setting
|
||||
return result
|
||||
|
||||
@property
|
||||
def parameters(self):
|
||||
result = {}
|
||||
for name, command in self._commands.items():
|
||||
for key, parameter in command.parameters.items():
|
||||
result[f"{name}.{key}"] = parameter
|
||||
return result
|
||||
|
||||
async def load_attributes(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue