Parcourir la source

Select properties configurable for steps

tags/3.1_alpha
Carl Allen GitHub il y a 8 ans
Parent
révision
734f0c6693
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. +1
    -1
      modules/core/core.py

+ 1
- 1
modules/core/core.py Voir le fichier

@@ -344,7 +344,7 @@ class CraftBeerPi(ActorAPI, SensorAPI):
self.cache[key][name]["properties"].append({"name": m, "label": t.label, "type": "text", "configurable": t.configurable})
elif isinstance(tmpObj.__getattribute__(m), StepProperty.Select):
t = tmpObj.__getattribute__(m)
self.cache[key][name]["properties"].append({"name": m, "label": t.label, "type": "select", "options": t.options})
self.cache[key][name]["properties"].append({"name": m, "label": t.label, "type": "select", "configurable": True, "options": t.options})
elif isinstance(tmpObj.__getattribute__(m), StepProperty.Actor):
t = tmpObj.__getattribute__(m)
self.cache[key][name]["properties"].append({"name": m, "label": t.label, "type": "actor", "configurable": t.configurable})


Chargement…
Annuler
Enregistrer