From bbce5231ddc02ae3077f1b647057ee9d0d79ca0c Mon Sep 17 00:00:00 2001 From: jbouwh Date: Mon, 6 Nov 2023 14:59:28 +0000 Subject: [PATCH] Use translation_domain from exception --- src/state/connection-mixin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/state/connection-mixin.ts b/src/state/connection-mixin.ts index 01cd4985c754..8a00bcf1c8ae 100644 --- a/src/state/connection-mixin.ts +++ b/src/state/connection-mixin.ts @@ -124,7 +124,7 @@ export const connectionMixin = >( forwardHaptic("failure"); const lokalize = await this.hass!.loadBackendTranslation( "exceptions", - domain + err.translation_domain ); const localizedErrorMessage = lokalize( `component.${err.translation_domain}.exceptions.${err.translation_key}.message`,