From 775c64528aaa4ca307c72f0c539546c9b0e82c3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20St=C3=BCrz?= Date: Fri, 23 Dec 2022 11:17:00 +0100 Subject: [PATCH] Netatmo: fix OAuth2 credentials loading from api key provider --- netatmo/integrationpluginnetatmo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netatmo/integrationpluginnetatmo.cpp b/netatmo/integrationpluginnetatmo.cpp index 24528e5c..60f46c6c 100644 --- a/netatmo/integrationpluginnetatmo.cpp +++ b/netatmo/integrationpluginnetatmo.cpp @@ -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.";