just ignore them

This commit is contained in:
Robin Müller 2022-11-03 13:41:28 +01:00
parent 00f1c5bbe9
commit 8362f9dabd
No known key found for this signature in database
GPG Key ID: 71B58F8A3CDFA9AC
1 changed files with 2 additions and 1 deletions

View File

@ -862,7 +862,8 @@ void DeviceHandlerBase::handleReply(const uint8_t* receivedData, DeviceCommandId
/* Other completion failure messages are created by timeout.
Powering down the device might take some time during which periodic
replies may still come in. */
if (mode != _MODE_WAIT_OFF) {
if (mode != _MODE_WAIT_OFF and mode != _MODE_SHUT_DOWN and mode != _MODE_POWER_DOWN and
mode != _MODE_SWITCH_IS_OFF) {
triggerEvent(DEVICE_UNREQUESTED_REPLY, foundId);
}
}