Netatmo: fixed connected state

master
bernhard.trinnes 2020-04-02 13:24:28 +02:00
parent b6df43f7d5
commit 08b5e73fc3
1 changed files with 1 additions and 1 deletions

View File

@ -350,7 +350,7 @@ void IntegrationPluginNetatmo::onNetworkReplyFinished()
thing->setStateValue(netatmoConnectionConnectedStateTypeId, false);
return;
}
thing->setStateValue(netatmoConnectionConnectedStateTypeId, true);
// check JSON file
QJsonParseError error;
QJsonDocument jsonDoc = QJsonDocument::fromJson(reply->readAll(), &error);