Skip to content

Commit

Permalink
Use live timer
Browse files Browse the repository at this point in the history
  • Loading branch information
piitaya committed Jul 15, 2024
1 parent 90b7b48 commit dac22e5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/entity/ha-entity-state-content-picker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ class HaEntityStatePicker extends LitElement {
.required=${this.required && !value.length}
.value=${""}
.items=${optionItems}
.allowCustomValue
allow-custom-value
@filter-changed=${this._filterChanged}
@value-changed=${this._comboBoxValueChanged}
@opened-changed=${this._openedChanged}
Expand Down
6 changes: 3 additions & 3 deletions src/state-display/state-display.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ import type { HomeAssistant } from "../types";
const TIMESTAMP_STATE_DOMAINS = ["button", "input_button", "scene"];

export const STATE_DISPLAY_SPECIAL_CONTENT = [
"timer_status",
"live_timer",
"install_status",
] as const;

export const STATE_DISPLAY_SPECIAL_CONTENT_DOMAINS: Record<
(typeof STATE_DISPLAY_SPECIAL_CONTENT)[number],
string[]
> = {
timer_status: ["timer"],
live_timer: ["timer"],
install_status: ["update"],
};

Expand Down Expand Up @@ -94,7 +94,7 @@ class StateDisplay extends LitElement {
${computeUpdateStateDisplay(stateObj as UpdateEntity, this.hass!)}
`;
}
if (content === "timer_status") {
if (content === "live_timer") {
import("./state-display-timer");
return html`
<state-display-timer
Expand Down
2 changes: 1 addition & 1 deletion src/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1023,7 +1023,7 @@
"state": "State",
"last_changed": "Last changed",
"last_updated": "Last updated",
"timer_status": "Timer status",
"live_timer": "Live timer",
"install_status": "Install status"
}
},
Expand Down

0 comments on commit dac22e5

Please sign in to comment.