Fix: correctly report max instead of min value in ThingState
This commit is contained in:
parent
28d2f53261
commit
e76a2fe3d4
@ -206,7 +206,7 @@ QVariant ScriptState::maximumValue() const
|
|||||||
if (stateType.id().isNull()) {
|
if (stateType.id().isNull()) {
|
||||||
stateType = thing->thingClass().stateTypes().findByName(m_stateName);
|
stateType = thing->thingClass().stateTypes().findByName(m_stateName);
|
||||||
}
|
}
|
||||||
return stateType.minValue();
|
return stateType.maxValue();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ScriptState::store()
|
void ScriptState::store()
|
||||||
|
|||||||
Reference in New Issue
Block a user