Fix last seen not always updated. #7423

This commit is contained in:
Koen Kanters
2021-12-03 19:21:52 +01:00
parent 68e5b39172
commit cb2ef51df8
+2
View File
@@ -124,6 +124,8 @@ export default class Receive extends Extension {
if (converters.length == 0 && !ignoreClusters.includes(data.cluster)) {
logger.debug(`No converter available for '${data.device.definition.model}' with ` +
`cluster '${data.cluster}' and type '${data.type}' and data '${stringify(data.data)}'`);
utils.publishLastSeen({device: data.device, reason: 'messageEmitted'},
settings.get(), true, this.publishEntityState);
return;
}