Procházet zdrojové kódy

Add default values for Property.Number

tags/3.1_alpha
Carl Allen před 8 roky
rodič
revize
909a6aa0ea
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. +1
    -1
      modules/core/core.py

+ 1
- 1
modules/core/core.py Zobrazit soubor

@@ -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(


Načítá se…
Zrušit
Uložit