Update name on every sync

This commit is contained in:
Michael Zanetti 2019-06-14 16:55:38 +02:00
parent ab2f247c76
commit 53679be274

View File

@ -156,10 +156,10 @@ void NymeaDiscovery::syncCloudDevices()
if (!host) {
host = new NymeaHost();
host->setUuid(d->id());
host->setName(d->name());
qDebug() << "CloudDiscovery: Adding new host:" << host->name() << host->uuid().toString();
m_nymeaHosts->addHost(host);
}
host->setName(d->name());
QUrl url;
url.setScheme("cloud");
url.setHost(d->id());