Remove polymer types, cleanups (#16385)

* Remove polymer types, cleanups

* Delete updated.ts
This commit is contained in:
Bram Kragten
2023-05-04 17:24:24 +02:00
committed by GitHub
parent ab237f19c0
commit 4e5a18d272
35 changed files with 97 additions and 149 deletions

View File

@@ -8,8 +8,7 @@ import { fireEvent } from "../../common/dom/fire_event";
import { computeDomain } from "../../common/entity/compute_domain";
import { computeStateName } from "../../common/entity/compute_state_name";
import { caseInsensitiveStringCompare } from "../../common/string/compare";
import { PolymerChangedEvent } from "../../polymer-types";
import { HomeAssistant } from "../../types";
import { ValueChangedEvent, HomeAssistant } from "../../types";
import "../ha-combo-box";
import type { HaComboBox } from "../ha-combo-box";
import "../ha-icon-button";
@@ -325,11 +324,11 @@ export class HaEntityPicker extends LitElement {
return this.value || "";
}
private _openedChanged(ev: PolymerChangedEvent<boolean>) {
private _openedChanged(ev: ValueChangedEvent<boolean>) {
this._opened = ev.detail.value;
}
private _valueChanged(ev: PolymerChangedEvent<string>) {
private _valueChanged(ev: ValueChangedEvent<string>) {
ev.stopPropagation();
const newValue = ev.detail.value;
if (newValue !== this._value) {