Rename energy 'Today' button to 'Now' (#20871)

This commit is contained in:
karwosts 2024-05-27 05:13:55 -07:00 committed by GitHub
parent c2737d5cec
commit 085131d546
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -259,9 +259,9 @@ export class HuiEnergyPeriodSelector extends SubscribeMixin(LitElement) {
</div> </div>
${!this.narrow ${!this.narrow
? html`<mwc-button dense outlined @click=${this._pickToday}> ? html`<mwc-button dense outlined @click=${this._pickNow}>
${this.hass.localize( ${this.hass.localize(
"ui.panel.lovelace.components.energy_period_selector.today" "ui.panel.lovelace.components.energy_period_selector.now"
)} )}
</mwc-button>` </mwc-button>`
: nothing} : nothing}
@ -374,7 +374,7 @@ export class HuiEnergyPeriodSelector extends SubscribeMixin(LitElement) {
this._updateCollectionPeriod(); this._updateCollectionPeriod();
} }
private _pickToday() { private _pickNow() {
if (!this._startDate) return; if (!this._startDate) return;
const range = this._simpleRange( const range = this._simpleRange(

View File

@ -6176,7 +6176,7 @@
"invalid_format": "Invalid display format" "invalid_format": "Invalid display format"
}, },
"energy_period_selector": { "energy_period_selector": {
"today": "Today", "now": "Now",
"previous": "Previous", "previous": "Previous",
"next": "Next", "next": "Next",
"compare": "Compare data" "compare": "Compare data"