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

@@ -22,8 +22,7 @@ import {
subscribeEntityRegistry,
} from "../../data/entity_registry";
import { SubscribeMixin } from "../../mixins/subscribe-mixin";
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";
@@ -330,7 +329,7 @@ export class HaDevicePicker extends SubscribeMixin(LitElement) {
return this.value || "";
}
private _deviceChanged(ev: PolymerChangedEvent<string>) {
private _deviceChanged(ev: ValueChangedEvent<string>) {
ev.stopPropagation();
let newValue = ev.detail.value;
@@ -343,7 +342,7 @@ export class HaDevicePicker extends SubscribeMixin(LitElement) {
}
}
private _openedChanged(ev: PolymerChangedEvent<boolean>) {
private _openedChanged(ev: ValueChangedEvent<boolean>) {
this._opened = ev.detail.value;
}