Netatmo: fix OAuth2 credentials loading from api key provider

master
Simon Stürz 2022-12-23 11:17:00 +01:00
parent 4f5bde9407
commit 775c64528a
1 changed files with 1 additions and 1 deletions

View File

@ -636,7 +636,7 @@ bool IntegrationPluginNetatmo::loadClientCredentials()
QByteArray clientId = configValue(netatmoPluginCustomClientIdParamTypeId).toByteArray();
QByteArray clientSecret = configValue(netatmoPluginCustomClientSecretParamTypeId).toByteArray();
if (clientId.isEmpty() || clientSecret.isEmpty()) {
clientId = apiKeyStorage()->requestKey("netatmo").data("clientKey");
clientId = apiKeyStorage()->requestKey("netatmo").data("clientId");
clientSecret = apiKeyStorage()->requestKey("netatmo").data("clientSecret");
} else {
qCDebug(dcNetatmo()) << "Using custom client id and secret from plugin configuration.";