mirror of https://github.com/nymea/nymea.git
Fix: correctly report max instead of min value in ThingState
parent
28d2f53261
commit
e76a2fe3d4
|
|
@ -206,7 +206,7 @@ QVariant ScriptState::maximumValue() const
|
|||
if (stateType.id().isNull()) {
|
||||
stateType = thing->thingClass().stateTypes().findByName(m_stateName);
|
||||
}
|
||||
return stateType.minValue();
|
||||
return stateType.maxValue();
|
||||
}
|
||||
|
||||
void ScriptState::store()
|
||||
|
|
|
|||
Loading…
Reference in New Issue