receiver: don't do on-screen notify for wireless device status notifications

This commit is contained in:
Peter F. Patel-Schneider 2021-12-02 10:37:44 -05:00
parent 292461c168
commit c8ab8b4350
1 changed files with 1 additions and 4 deletions

View File

@ -370,10 +370,7 @@ def _process_feature_notification(device, status, n, feature):
_log.debug('wireless status: %s', n) _log.debug('wireless status: %s', n)
reason = 'powered on' if n.data[2] == 1 else None reason = 'powered on' if n.data[2] == 1 else None
if n.data[1] == 1: # device is asking for software reconfiguration so need to change status if n.data[1] == 1: # device is asking for software reconfiguration so need to change status
# only show a user notification if the device can change hosts alert = _ALERT.NONE
# as we want to notify when a device changes to this host
# but the only indication we get is this notification
alert = _ALERT.NOTIFICATION if _F.CHANGE_HOST in device.features else _ALERT.NONE
status.changed(active=True, alert=alert, reason=reason) status.changed(active=True, alert=alert, reason=reason)
else: else:
_log.warn('%s: unknown WIRELESS %s', device, n) _log.warn('%s: unknown WIRELESS %s', device, n)