1
0
mirror of https://github.com/home-assistant/frontend.git synced 2025-12-20 02:38:53 +00:00

Address code review feedback - remove unused methods and clean up warning class

Co-authored-by: wendevlin <12148533+wendevlin@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-12-05 11:58:09 +00:00
parent fdeca95215
commit 657f88595b
2 changed files with 1 additions and 28 deletions

View File

@@ -772,29 +772,6 @@ export class HassioNetwork extends LitElement {
}
}
private _addPredefinedDNS(ev: Event) {
const source = ev.target as any;
const version = source.version as "ipv4" | "ipv6";
const addresses = source.addresses as string[];
if (!this._interface![version]!.nameservers) {
this._interface![version]!.nameservers = [];
}
this._interface![version]!.nameservers!.push(...addresses);
this._dirty = true;
this.requestUpdate("_interface");
}
private _addCustomDNS(ev: Event) {
const source = ev.target as any;
const version = source.version as "ipv4" | "ipv6";
if (!this._interface![version]!.nameservers) {
this._interface![version]!.nameservers = [];
}
this._interface![version]!.nameservers!.push("");
this._dirty = true;
this.requestUpdate("_interface");
}
private _removeNameserver(ev: Event): void {
const source = ev.target as any;
const index = source.index as number;

View File

@@ -285,11 +285,7 @@ export class HaSceneEditor extends PreventUnsavedMixin(
.disabled=${!this.sceneId}
.variant=${this.sceneId ? "danger" : "default"}
>
<ha-svg-icon
class=${classMap({ warning: Boolean(this.sceneId) })}
slot="icon"
.path=${mdiDelete}
></ha-svg-icon>
<ha-svg-icon slot="icon" .path=${mdiDelete}></ha-svg-icon>
${this.hass.localize("ui.panel.config.scene.picker.delete_scene")}
</ha-dropdown-item>
</ha-dropdown>