From 49d9c7f392f4b9977f4b1f370098e6ff2eb6a0dc Mon Sep 17 00:00:00 2001 From: Paul Bottein Date: Fri, 20 Dec 2024 11:27:49 +0100 Subject: [PATCH] Update icons for backups (#23351) --- .../components/config/ha-backup-config-agents.ts | 4 ++-- .../backup/components/ha-backup-agents-picker.ts | 4 ++-- .../components/overview/ha-backup-overview-settings.ts | 4 ++-- src/panels/config/backup/ha-config-backup-backups.ts | 4 ++-- src/panels/config/backup/ha-config-backup-details.ts | 4 ++-- src/state/connection-mixin.ts | 10 +++++----- 6 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/panels/config/backup/components/config/ha-backup-config-agents.ts b/src/panels/config/backup/components/config/ha-backup-config-agents.ts index e9895fc505a5..7d6200bd5857 100644 --- a/src/panels/config/backup/components/config/ha-backup-config-agents.ts +++ b/src/panels/config/backup/components/config/ha-backup-config-agents.ts @@ -1,4 +1,4 @@ -import { mdiDatabase } from "@mdi/js"; +import { mdiHarddisk } from "@mdi/js"; import type { PropertyValues } from "lit"; import { css, html, LitElement, nothing } from "lit"; import { customElement, property, state } from "lit/decorators"; @@ -64,7 +64,7 @@ class HaBackupConfigAgents extends LitElement { ${isLocalAgent(agentId) ? html` - + ` : html` diff --git a/src/panels/config/backup/components/ha-backup-agents-picker.ts b/src/panels/config/backup/components/ha-backup-agents-picker.ts index a586eec3f75a..6a5fb7ca63f4 100644 --- a/src/panels/config/backup/components/ha-backup-agents-picker.ts +++ b/src/panels/config/backup/components/ha-backup-agents-picker.ts @@ -1,4 +1,4 @@ -import { mdiDatabase } from "@mdi/js"; +import { mdiHarddisk } from "@mdi/js"; import { css, html, LitElement } from "lit"; import { customElement, property } from "lit/decorators"; import memoizeOne from "memoize-one"; @@ -61,7 +61,7 @@ class HaBackupAgentsPicker extends LitElement { ${isLocalAgent(agentId) ? html` - + ` : html` - +
${this.config.create_backup.include_database ? "Settings and history" diff --git a/src/panels/config/backup/ha-config-backup-backups.ts b/src/panels/config/backup/ha-config-backup-backups.ts index c89d39f46a35..1c7cdefcce7b 100644 --- a/src/panels/config/backup/ha-config-backup-backups.ts +++ b/src/panels/config/backup/ha-config-backup-backups.ts @@ -1,8 +1,8 @@ import { - mdiDatabase, mdiDelete, mdiDotsVertical, mdiDownload, + mdiHarddisk, mdiPlus, mdiUpload, } from "@mdi/js"; @@ -147,7 +147,7 @@ class HaConfigBackupBackups extends SubscribeMixin(LitElement) { if (isLocalAgent(agentId)) { return html` diff --git a/src/panels/config/backup/ha-config-backup-details.ts b/src/panels/config/backup/ha-config-backup-details.ts index 0f37a3bd59f3..86df796b3650 100644 --- a/src/panels/config/backup/ha-config-backup-details.ts +++ b/src/panels/config/backup/ha-config-backup-details.ts @@ -1,5 +1,5 @@ import type { ActionDetail } from "@material/mwc-list"; -import { mdiDatabase, mdiDelete, mdiDotsVertical, mdiDownload } from "@mdi/js"; +import { mdiDelete, mdiDotsVertical, mdiDownload, mdiHarddisk } from "@mdi/js"; import { css, html, LitElement, nothing } from "lit"; import { customElement, property, state } from "lit/decorators"; import { formatDateTime } from "../../../common/datetime/format_date_time"; @@ -177,7 +177,7 @@ class HaConfigBackupDetails extends LitElement { ${isLocalAgent(agentId) ? html` diff --git a/src/state/connection-mixin.ts b/src/state/connection-mixin.ts index 2a219abccb36..6afb6d277d7f 100644 --- a/src/state/connection-mixin.ts +++ b/src/state/connection-mixin.ts @@ -89,7 +89,7 @@ export const connectionMixin = >( notifyOnError = true, returnResponse = false ) => { - if (__DEV__ || this.hass?.debugConnection) { + if (this.hass?.debugConnection) { // eslint-disable-next-line no-console console.log( "Calling service", @@ -115,7 +115,7 @@ export const connectionMixin = >( ) { return { context: { id: "" } }; } - if (__DEV__ || this.hass?.debugConnection) { + if (this.hass?.debugConnection) { // eslint-disable-next-line no-console console.error( "Error calling service", @@ -167,7 +167,7 @@ export const connectionMixin = >( ) => fetchWithAuth(auth, `${auth.data.hassUrl}${path}`, init), // For messages that do not get a response sendWS: (msg) => { - if (__DEV__ || this.hass?.debugConnection) { + if (this.hass?.debugConnection) { // eslint-disable-next-line no-console console.log("Sending", msg); } @@ -175,14 +175,14 @@ export const connectionMixin = >( }, // For messages that expect a response callWS: (msg) => { - if (__DEV__ || this.hass?.debugConnection) { + if (this.hass?.debugConnection) { // eslint-disable-next-line no-console console.log("Sending", msg); } const resp = conn.sendMessagePromise(msg); - if (__DEV__ || this.hass?.debugConnection) { + if (this.hass?.debugConnection) { resp.then( // eslint-disable-next-line no-console (result) => console.log("Received", result),