From ac27c2b8d34e687ccc4e00e91d24a8527a4ccc36 Mon Sep 17 00:00:00 2001 From: "bernhard.trinnes" Date: Wed, 25 Mar 2020 22:34:25 +0100 Subject: [PATCH] Denon: added browser item error message --- denon/integrationplugindenon.cpp | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/denon/integrationplugindenon.cpp b/denon/integrationplugindenon.cpp index d4040945..1f50f6f8 100644 --- a/denon/integrationplugindenon.cpp +++ b/denon/integrationplugindenon.cpp @@ -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); } }