mirror of
https://github.com/Andre0512/pyhOn.git
synced 2025-05-13 14:44:28 -04:00
Add zone support
This commit is contained in:
parent
9643f66549
commit
d52d622785
6 changed files with 45 additions and 31 deletions
|
@ -25,6 +25,8 @@ class HonCommand:
|
|||
def _create_parameters(self, parameters):
|
||||
result = {}
|
||||
for parameter, attributes in parameters.items():
|
||||
if parameter == "zoneMap" and self._device.zone:
|
||||
attributes["default"] = self._device.zone
|
||||
match attributes.get("typology"):
|
||||
case "range":
|
||||
result[parameter] = HonParameterRange(parameter, attributes)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue