From 538e59f68bdc47876a2129665d0254551d61f32d Mon Sep 17 00:00:00 2001 From: "bernhard.trinnes" Date: Wed, 25 Mar 2020 22:46:05 +0100 Subject: [PATCH] Denon: fixed reboot --- denon/heos.cpp | 2 +- denon/integrationplugindenon.cpp | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/denon/heos.cpp b/denon/heos.cpp index 9e93b20f..8bc981b6 100644 --- a/denon/heos.cpp +++ b/denon/heos.cpp @@ -37,7 +37,7 @@ #include #include #if QT_VERSION >= QT_VERSION_CHECK(5, 10, 0) -#include +#include #endif Heos::Heos(const QHostAddress &hostAddress, QObject *parent) : diff --git a/denon/integrationplugindenon.cpp b/denon/integrationplugindenon.cpp index 1f50f6f8..367cdb97 100644 --- a/denon/integrationplugindenon.cpp +++ b/denon/integrationplugindenon.cpp @@ -311,9 +311,8 @@ void IntegrationPluginDenon::executeAction(ThingActionInfo *info) return info->finish(Thing::ThingErrorActionTypeNotFound); } else if (thing->thingClassId() == heosThingClassId) { - Thing *heosThing = myThings().findById(thing->parentId()); - Heos *heos = m_heosConnections.value(heosThing->id()); - if (action.actionTypeId() == heosPlayerAlertActionTypeId) { + Heos *heos = m_heosConnections.value(thing->id()); + if (action.actionTypeId() == heosRebootActionTypeId) { heos->rebootSpeaker(); return info->finish(Thing::ThingErrorNoError); }