Skip to content

Commit

Permalink
fix(mqtt): Always refresh gettable handles after setting
Browse files Browse the repository at this point in the history
  • Loading branch information
Hypfer committed Jun 8, 2024
1 parent 92b351a commit 6ca4eb9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion backend/lib/mqtt/handles/PropertyMqttHandle.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,11 @@ class PropertyMqttHandle extends MqttHandle {
}

async set(value) {
return this.setter(value);
await this.setter(value);

if (this.gettable) {
await this.refresh();
}
}

/**
Expand Down

0 comments on commit 6ca4eb9

Please sign in to comment.