From 12eef3901309a6d23c5e99673f056fa3c254421a Mon Sep 17 00:00:00 2001 From: Michael Zanetti Date: Mon, 23 Nov 2020 19:15:02 +0100 Subject: [PATCH] Fix potential wrong state signal Make sure to emit the very same value we store --- libnymea/integrations/thing.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libnymea/integrations/thing.cpp b/libnymea/integrations/thing.cpp index 9f3bdbba..fb62b57f 100644 --- a/libnymea/integrations/thing.cpp +++ b/libnymea/integrations/thing.cpp @@ -364,7 +364,7 @@ void Thing::setStateValue(const StateTypeId &stateTypeId, const QVariant &value) qCDebug(dcThing()).nospace() << m_name << ": State " << stateType.name() << " changed from " << oldValue << " to " << newValue; m_states[i].setValue(newValue); - emit stateValueChanged(stateTypeId, value); + emit stateValueChanged(stateTypeId, newValue); return; } }