Merge PR #499: Fix for ThingState which reports minValue instead of maxValue

This commit is contained in:
Jenkins nymea 2022-03-27 19:49:36 +02:00
commit 8153e551c1

View File

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