diff --git a/mystrom/integrationpluginmystrom.cpp b/mystrom/integrationpluginmystrom.cpp index 6ac536b3..45d464a5 100644 --- a/mystrom/integrationpluginmystrom.cpp +++ b/mystrom/integrationpluginmystrom.cpp @@ -1,6 +1,6 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -* Copyright 2013 - 2021, nymea GmbH +* Copyright 2013 - 2025, nymea GmbH * Contact: contact@nymea.io * * This file is part of nymea. @@ -254,7 +254,7 @@ QUrl IntegrationPluginMyStrom::composeUrl(Thing *thing, const QString &path) if (address.isNull()) { pluginStorage()->beginGroup(thing->id().toString()); - address = pluginStorage()->value("cachedAddress").toString(); + address = QHostAddress(pluginStorage()->value("cachedAddress").toString()); pluginStorage()->endGroup(); } diff --git a/mystrom/integrationpluginmystrom.h b/mystrom/integrationpluginmystrom.h index 8091eaa4..d3efe39a 100644 --- a/mystrom/integrationpluginmystrom.h +++ b/mystrom/integrationpluginmystrom.h @@ -1,6 +1,6 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -* Copyright 2013 - 2021, nymea GmbH +* Copyright 2013 - 2025, nymea GmbH * Contact: contact@nymea.io * * This file is part of nymea. @@ -31,7 +31,7 @@ #ifndef INTEGRATIONPLUGINMYSTROM_H #define INTEGRATIONPLUGINMYSTROM_H -#include "integrations/integrationplugin.h" +#include #include #include @@ -58,7 +58,7 @@ public: void executeAction(ThingActionInfo *info) override; private: - void finishDiscoveryReply(QNetworkReply* reply, ThingDiscoveryInfo* info, QList *pendingReplies); + void finishDiscoveryReply(QNetworkReply *reply, ThingDiscoveryInfo *info, QList *pendingReplies); QUrl composeUrl(Thing *thing, const QString &path); ZeroConfServiceBrowser *m_zeroConf = nullptr;