Update template time listener phrasing for core changes (#7450)

This commit is contained in:
J. Nick Koston 2020-10-22 17:10:51 -05:00 committed by GitHub
parent a78c00fb41
commit 5fa7cd9fa9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 4 deletions

View File

@ -228,11 +228,13 @@ class HaPanelDevTemplate extends LitElement {
)} )}
</ul> </ul>
` `
: html` <span class="all_listeners"> : !this._templateResult?.listeners.time
? html` <span class="all_listeners">
${this.hass.localize( ${this.hass.localize(
"ui.panel.developer-tools.tabs.templates.no_listeners" "ui.panel.developer-tools.tabs.templates.no_listeners"
)} )}
</span>`} </span>`
: html``}
</div> </div>
</div> </div>
`; `;

View File

@ -2961,9 +2961,9 @@
"jinja_documentation": "Jinja2 template documentation", "jinja_documentation": "Jinja2 template documentation",
"template_extensions": "Home Assistant template extensions", "template_extensions": "Home Assistant template extensions",
"unknown_error_template": "Unknown error rendering template", "unknown_error_template": "Unknown error rendering template",
"time": "This template updates every 60 seconds after the last state changed event.", "time": "This template updates at the start of each minute.",
"all_listeners": "This template listens for all state changed events.", "all_listeners": "This template listens for all state changed events.",
"no_listeners": "This template does not listen for any state changed events and will not update automatically.", "no_listeners": "This template does not listen for any events and will not update automatically.",
"listeners": "This template listens for the following state changed events:", "listeners": "This template listens for the following state changed events:",
"entity": "Entity", "entity": "Entity",
"domain": "Domain" "domain": "Domain"