Expose fixed parameter as setting

This commit is contained in:
Andre Basche 2023-04-23 16:21:34 +02:00
parent ad864286fc
commit b011d98e07
3 changed files with 1 additions and 4 deletions

0
pyhon/__main__.py Executable file → Normal file
View File

View File

@ -89,8 +89,6 @@ class HonCommand:
for key, parameter in ( for key, parameter in (
command._parameters | command._ancillary_parameters command._parameters | command._ancillary_parameters
).items(): ).items():
if isinstance(parameter, HonParameterFixed):
continue
if key not in keys: if key not in keys:
keys.append(key) keys.append(key)
return keys return keys
@ -108,7 +106,6 @@ class HonCommand:
@property @property
def settings(self) -> Dict[str, HonParameter]: def settings(self) -> Dict[str, HonParameter]:
"""Parameters with typology enum and range"""
return { return {
s: param s: param
for s in self.setting_keys for s in self.setting_keys

View File

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