mirror of
https://github.com/Andre0512/pyhOn.git
synced 2025-05-13 22:54:26 -04:00
Get program name
This commit is contained in:
parent
a081ef1f97
commit
31c03faca8
10 changed files with 44 additions and 36 deletions
|
@ -44,7 +44,9 @@ class HonParameterProgram(HonParameterEnum):
|
|||
values = {
|
||||
int(p.parameters["prCode"].value): n
|
||||
for i, (n, p) in enumerate(self._programs.items())
|
||||
if "iot_" not in n and p.parameters.get("prCode")
|
||||
if "iot_" not in n
|
||||
and p.parameters.get("prCode")
|
||||
and not ((fav := p.parameters.get("favourite")) and fav.value == "1")
|
||||
}
|
||||
return dict(sorted(values.items()))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue