Преглед изворни кода

Add default values for Property.Number

tags/3.1_alpha
Carl Allen пре 8 година
родитељ
комит
909a6aa0ea
1 измењених фајлова са 1 додато и 1 уклоњено
  1. +1
    -1
      modules/core/core.py

+ 1
- 1
modules/core/core.py Прегледај датотеку

@@ -274,7 +274,7 @@ class CraftBeerPi(ActorAPI, SensorAPI):
if isinstance(tmpObj.__getattribute__(m), Property.Number):
t = tmpObj.__getattribute__(m)
self.cache[key][name]["properties"].append(
{"name": m, "label": t.label, "type": "number", "configurable": t.configurable, "description": t.description})
{"name": m, "label": t.label, "type": "number", "configurable": t.configurable, "description": t.description, "default_value": t.default_value})
elif isinstance(tmpObj.__getattribute__(m), Property.Text):
t = tmpObj.__getattribute__(m)
self.cache[key][name]["properties"].append(


Loading…
Откажи
Сачувај