[insteon] Fix legacy all link broadcast message not processed (#18049)

Signed-off-by: Jeremy Setton <jeremy.setton@gmail.com>
This commit is contained in:
Jeremy 2025-01-06 07:08:17 -05:00 committed by GitHub
parent b4bcf802f4
commit 19ca89c301
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -514,7 +514,7 @@ public class InsteonLegacyBinding implements LegacyDriverListener, LegacyPortLis
private void handleInsteonMessage(Msg msg) throws FieldException { private void handleInsteonMessage(Msg msg) throws FieldException {
InsteonAddress toAddr = msg.getInsteonAddress("toAddress"); InsteonAddress toAddr = msg.getInsteonAddress("toAddress");
if (!msg.isBroadcast() && !driver.isMsgForUs(toAddr)) { if (!msg.isBroadcast() && !msg.isAllLinkBroadcast() && !driver.isMsgForUs(toAddr)) {
// not for one of our modems, do not process // not for one of our modems, do not process
return; return;
} }

View File

@ -334,7 +334,7 @@ public class LegacyDevice {
if (qe == null) { if (qe == null) {
return 0L; return 0L;
} }
if (!qe.getMsg().isBroadcast()) { if (!qe.getMsg().isAllLinkBroadcast()) {
logger.debug("qe taken off direct: {} {}", qe.getFeature(), qe.getMsg()); logger.debug("qe taken off direct: {} {}", qe.getFeature(), qe.getMsg());
lastQueryTime = timeNow; lastQueryTime = timeNow;
// mark feature as pending // mark feature as pending
@ -382,7 +382,7 @@ public class LegacyDevice {
synchronized (mrequestQueue) { synchronized (mrequestQueue) {
mrequestQueue.add(new QEntry(feature, msg, now + delay)); mrequestQueue.add(new QEntry(feature, msg, now + delay));
} }
if (!msg.isBroadcast()) { if (!msg.isAllLinkBroadcast()) {
msg.setQuietTime(QUIET_TIME_DIRECT_MESSAGE); msg.setQuietTime(QUIET_TIME_DIRECT_MESSAGE);
} }
logger.trace("enqueing direct message with delay {}", delay); logger.trace("enqueing direct message with delay {}", delay);