[#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: blacklight
GPG Key ID: D90FBA7F76362774
1 changed files with 1 additions and 0 deletions

View File

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