Fix setting last_seen from frontend not working. #5545

This commit is contained in:
Koen Kanters 2021-01-05 19:15:08 +01:00
parent acfd938e48
commit adfb9f0c42

View File

@ -199,7 +199,7 @@ class Bridge extends Extension {
throw new Error(`'${value}' is not an allowed value, allowed: ${allowed}`);
}
settings.set(['advanced', 'last_seen'], message);
settings.set(['advanced', 'last_seen'], value);
this.publishInfo();
return utils.getResponse(message, {value}, null);
}