Denon: added browser item error message

master
bernhard.trinnes 2020-03-25 22:34:25 +01:00
parent 117994d0a1
commit ac27c2b8d3
1 changed files with 1 additions and 12 deletions

View File

@ -431,17 +431,6 @@ void IntegrationPluginDenon::onPluginTimer()
Heos *heos = m_heosConnections.value(thing->id());
heos->getPlayers();
heos->registerForChangeEvents(true);
} else if (thing->thingClassId() == heosPlayerThingClassId) {
//Thing *heosThing = myThings().findById(thing->parentId());
//Heos *heos = m_heosConnections.value(heosThing->id());
//int playerId = thing->paramValue(heosPlayerThingPlayerIdParamTypeId).toInt();
//TODO check if event stream is sufficent and remove polling
//heos->getPlayerState(playerId);
//heos->getPlayMode(playerId);
//heos->getVolume(playerId);
//heos->getMute(playerId);
//heos->getNowPlayingMedia(playerId);
}
}
}
@ -882,7 +871,7 @@ void IntegrationPluginDenon::onHeosBrowseErrorReceived(const QString &sourceId,
if (m_pendingBrowseResult.contains(identifier)) {
BrowseResult *result = m_pendingBrowseResult.take(identifier);
qWarning(dcDenon) << "Browse error" << errorMessage << errorId;
result->finish(Thing::ThingErrorHardwareFailure);
result->finish(Thing::ThingErrorHardwareFailure, errorMessage);
}
}