Skip to content

Commit

Permalink
Use translation_domain from exception
Browse files Browse the repository at this point in the history
  • Loading branch information
jbouwh committed Nov 6, 2023
1 parent dada7f7 commit bbce523
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/state/connection-mixin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export const connectionMixin = <T extends Constructor<HassBaseEl>>(
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`,
Expand Down

0 comments on commit bbce523

Please sign in to comment.