[#340] Force a refresh via alarm.status when Alarm view loads.

This commit is contained in:
Fabio Manganiello 2023-12-10 21:53:19 +01:00
parent b4be56ec2c
commit 894faaad1e
Signed by untrusted user: blacklight
GPG key ID: D90FBA7F76362774

View file

@ -77,6 +77,7 @@ export default {
async refresh() { async refresh() {
this.$emit('loading', true) this.$emit('loading', true)
try { try {
await this.request('alarm.status');
(await this.request('entities.get', {plugins: [this.pluginName]})).forEach( (await this.request('entities.get', {plugins: [this.pluginName]})).forEach(
entity => this.addAlarm(entity) entity => this.addAlarm(entity)
) )