Fix: correctly report max instead of min value in ThingState

pull/499/head
doctorseus 2022-02-16 14:19:19 +01:00
parent 28d2f53261
commit e76a2fe3d4
1 changed files with 1 additions and 1 deletions

View File

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