Fix battery name parsing during initial setup

This commit is contained in:
Simon Stürz 2022-03-07 13:20:17 +01:00
parent c7edc3ccf8
commit 9f1869462a

View File

@ -352,7 +352,8 @@ void IntegrationPluginFronius::refreshConnection(FroniusSolarConnection *connect
} }
// Parse the data and update the states of our device // Parse the data and update the states of our device
QVariantMap dataMap = jsonDoc.toVariant().toMap().value("Body").toMap().value("Data").toMap(); QVariantMap dataMap = jsonDoc.toVariant().toMap().value("Body").toMap().value("Data").toMap().value("Controller").toMap();
QString thingName; QString thingName;
QString serialNumber; QString serialNumber;
if (dataMap.contains("Details")) { if (dataMap.contains("Details")) {