Update src/panels/config/devices/ha-config-device-page.ts

Co-authored-by: Bram Kragten <mail@bramkragten.nl>
This commit is contained in:
Erik Montnemery 2022-02-18 16:21:11 +01:00 committed by GitHub
parent 4f6a241817
commit 26689a0a85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -276,7 +276,8 @@ export class HaConfigDevicePage extends LitElement {
return;
}
const buttons = this._integrations(device, this.entries).forEach((entry) => {
const buttons = [];
this._integrations(device, this.entries).forEach((entry) => {
if (entry.state !== "loaded" || !entry.supports_remove_device) {
return;
}