瀏覽代碼

Select properties configurable for steps

tags/3.1_alpha
Carl Allen GitHub 8 年之前
父節點
當前提交
734f0c6693
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      modules/core/core.py

+ 1
- 1
modules/core/core.py 查看文件

@@ -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})


Loading…
取消
儲存