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

@@ -2,8 +2,7 @@ import { HassEntity } from "home-assistant-js-websocket";
import { html, LitElement, PropertyValues, nothing } from "lit";
import { customElement, property, query } from "lit/decorators";
import { computeAttributeNameDisplay } from "../../common/entity/compute_attribute_display";
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";
@@ -99,11 +98,11 @@ class HaEntityAttributePicker extends LitElement {
`;
}
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>) {
this.value = ev.detail.value;
}
}