From 86442ac742b32d48c1e8ac63b7b3acaf70300a92 Mon Sep 17 00:00:00 2001 From: Christian Fetzer Date: Sun, 29 May 2022 13:51:15 +0200 Subject: [PATCH] somfytahoma: Rename Tahoma to TaHoma in log messages --- somfytahoma/integrationpluginsomfytahoma.cpp | 8 ++++---- somfytahoma/integrationpluginsomfytahoma.json | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/somfytahoma/integrationpluginsomfytahoma.cpp b/somfytahoma/integrationpluginsomfytahoma.cpp index 091dc95e..902af5e9 100644 --- a/somfytahoma/integrationpluginsomfytahoma.cpp +++ b/somfytahoma/integrationpluginsomfytahoma.cpp @@ -51,7 +51,7 @@ void IntegrationPluginSomfyTahoma::discoverThings(ThingDiscoveryInfo *info) foreach (const ZeroConfServiceEntry &entry, m_zeroConfBrowser->serviceEntries()) { qCDebug(dcSomfyTahoma()) << "Found local gateway:" << entry; - ThingDescriptor descriptor(info->thingClassId(), "Somfy Tahoma Gateway", entry.hostAddress().toString()); + ThingDescriptor descriptor(info->thingClassId(), "Somfy TaHoma Gateway", entry.hostAddress().toString()); ParamList params; params << Param(gatewayThingGatewayIdParamTypeId, entry.name()); params << Param(gatewayThingGatewayPinParamTypeId, entry.txt("gateway_pin")); @@ -71,7 +71,7 @@ void IntegrationPluginSomfyTahoma::discoverThings(ThingDiscoveryInfo *info) void IntegrationPluginSomfyTahoma::startPairing(ThingPairingInfo *info) { - info->finish(Thing::ThingErrorNoError, QT_TR_NOOP("Please enter the cloud login credentials for Somfy Tahoma in order to set up local access to the Gateway.")); + info->finish(Thing::ThingErrorNoError, QT_TR_NOOP("Please enter the cloud login credentials for Somfy TaHoma in order to set up local access to the Gateway.")); } void IntegrationPluginSomfyTahoma::confirmPairing(ThingPairingInfo *info, const QString &username, const QString &password) @@ -79,7 +79,7 @@ void IntegrationPluginSomfyTahoma::confirmPairing(ThingPairingInfo *info, const // Request local token from cloud account. SomfyTahomaRequest *request = createCloudSomfyTahomaLoginRequest(hardwareManager()->networkManager(), username, password, this); connect(request, &SomfyTahomaRequest::error, info, [info](){ - info->finish(Thing::ThingErrorAuthenticationFailure, QT_TR_NOOP("Failed to login to Somfy Tahoma.")); + info->finish(Thing::ThingErrorAuthenticationFailure, QT_TR_NOOP("Failed to login to Somfy TaHoma.")); }); connect(request, &SomfyTahomaRequest::finished, info, [this, info, username, password](const QVariant &/*result*/){ SomfyTahomaRequest *request = createCloudSomfyTahomaGetRequest(hardwareManager()->networkManager(), "/config/" + info->params().paramValue(gatewayThingGatewayPinParamTypeId).toString() + "/local/tokens/generate", this); @@ -119,7 +119,7 @@ void IntegrationPluginSomfyTahoma::setupThing(ThingSetupInfo *info) // Compatibility to older cloud based versions of the plugin. if (info->thing()->thingClassId() == tahomaThingClassId || (info->thing()->thingClassId() == gatewayThingClassId && getToken(info->thing()).isEmpty())) { - info->finish(Thing::ThingErrorSetupFailed, QT_TR_NOOP("The Somfy Plugin switched to local connection. Please enable 'Developer Mode' on somfy.com, remove the account from Nymea and re-setup the Somfy Tahoma Gateway.")); + info->finish(Thing::ThingErrorSetupFailed, QT_TR_NOOP("The Somfy Plugin switched to local connection. Please enable 'Developer Mode' on somfy.com, remove the account from Nymea and re-setup the Somfy TaHoma Gateway.")); return; } diff --git a/somfytahoma/integrationpluginsomfytahoma.json b/somfytahoma/integrationpluginsomfytahoma.json index 31bae0c7..e7f2488f 100644 --- a/somfytahoma/integrationpluginsomfytahoma.json +++ b/somfytahoma/integrationpluginsomfytahoma.json @@ -1,6 +1,6 @@ { "name": "SomfyTahoma", - "displayName": "Somfy Tahoma", + "displayName": "Somfy TaHoma", "id": "4e8be1c1-daa8-4e21-9e85-b2372ab1a450", "vendors": [ { @@ -11,7 +11,7 @@ { "id": "fedd72b8-547d-4e4f-b73e-71344a8ba0c1", "name": "tahoma", - "displayName": "Tahoma Account", + "displayName": "TaHoma Account", "createMethods": ["auto"], "interfaces": ["account"], "stateTypes": [ @@ -44,7 +44,7 @@ { "id": "6c09e0b9-f0cc-4dea-9994-9e039eff78f1", "name": "gateway", - "displayName": "Tahoma Gateway", + "displayName": "TaHoma Gateway", "createMethods": ["discovery"], "setupMethod": "userandpassword", "interfaces": ["gateway"],