Rename triggerTimer to refreshTimer

This commit is contained in:
RJ Fendricks
2023-10-24 17:13:13 -04:00
parent 7f506931c3
commit 805ec290ec
2 changed files with 3 additions and 3 deletions

View File

@@ -53,11 +53,11 @@ Module.register("MMM-HomeAssistantDisplay", {
});
}
// Set up a timer to trigger re-rendering outside of any entity state update
if (section.triggerTimer) {
if (section.refreshTimer) {
setInterval(()=> {
this.renderTemplates("timeout");
this.updateDom();
}, section.triggerTimer);
}, section.refreshTimer);
}
}
}

View File

@@ -55,7 +55,7 @@ Templates allow you to output virtually any HTML you want to in the contents of
| triggerEntities | The array of entities to watch for state changes to determine if this sections displayTemplate should be re-rendered. |
| displayTemplate | The template to send to Home Assistant to render. The results of the render will be displayed as the contents of this section in the module. |
| class | The CSS class name to add to the `<div>` surrounding this section of the module. This is a name you choose yourself, for example "HAValues". You can then style this section by adding a .HAvalues-section in custom.css. |
| triggerTimer | Set a trigger timeout in milliseconds to re-render this section's displayTemplate, regardless of whether or not an entity has changed states. |
| refreshTimer | Set a refresh timeout in milliseconds to re-render this section's displayTemplate, regardless of whether or not an entity has changed states. |
#### Note