Skip to content

Commit

Permalink
Rename energy 'Today' button to 'Now'
Browse files Browse the repository at this point in the history
  • Loading branch information
karwosts committed May 25, 2024
1 parent 34b9c7b commit 9987227
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/panels/lovelace/components/hui-energy-period-selector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -261,9 +261,9 @@ export class HuiEnergyPeriodSelector extends SubscribeMixin(LitElement) {
</div>
${!this.narrow
? html`<mwc-button dense outlined @click=${this._pickToday}>
? html`<mwc-button dense outlined @click=${this._pickNow}>
${this.hass.localize(
"ui.panel.lovelace.components.energy_period_selector.today"
"ui.panel.lovelace.components.energy_period_selector.now"
)}
</mwc-button>`
: nothing}
Expand Down Expand Up @@ -376,7 +376,7 @@ export class HuiEnergyPeriodSelector extends SubscribeMixin(LitElement) {
this._updateCollectionPeriod();
}

private _pickToday() {
private _pickNow() {
if (!this._startDate) return;

const range = this._simpleRange(
Expand Down
2 changes: 1 addition & 1 deletion src/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -6183,7 +6183,7 @@
"invalid_format": "Invalid display format"
},
"energy_period_selector": {
"today": "Today",
"now": "Now",
"previous": "Previous",
"next": "Next",
"compare": "Compare data"
Expand Down

0 comments on commit 9987227

Please sign in to comment.