Denon: fixed reboot
This commit is contained in:
parent
ac27c2b8d3
commit
538e59f68b
@ -37,7 +37,7 @@
|
||||
#include <QUrlQuery>
|
||||
#include <QTimer>
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(5, 10, 0)
|
||||
#include <QRandromGenerator>
|
||||
#include <QRandomGenerator>
|
||||
#endif
|
||||
|
||||
Heos::Heos(const QHostAddress &hostAddress, QObject *parent) :
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user