From 6dfe6472af88e15ffd0036da5d3df91a1f2a600d Mon Sep 17 00:00:00 2001 From: Erwin Douna Date: Mon, 15 Jun 2026 12:08:31 +0200 Subject: [PATCH] MELCloud Home refactor error translations (#173852) --- homeassistant/components/melcloud_home/coordinator.py | 3 --- homeassistant/components/melcloud_home/strings.json | 6 +++--- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/homeassistant/components/melcloud_home/coordinator.py b/homeassistant/components/melcloud_home/coordinator.py index a055c731821a..006c0949b850 100644 --- a/homeassistant/components/melcloud_home/coordinator.py +++ b/homeassistant/components/melcloud_home/coordinator.py @@ -90,19 +90,16 @@ class MelCloudHomeCoordinator(DataUpdateCoordinator[UserContext]): raise UpdateFailed( translation_domain=DOMAIN, translation_key="invalid_auth", - translation_placeholders={"error": repr(err)}, ) from err except MelCloudHomeConnectionError as err: raise UpdateFailed( translation_domain=DOMAIN, translation_key="cannot_connect", - translation_placeholders={"error": repr(err)}, ) from err except MelCloudHomeTimeoutError as err: raise UpdateFailed( translation_domain=DOMAIN, translation_key="timeout_connect", - translation_placeholders={"error": repr(err)}, ) from err else: return data diff --git a/homeassistant/components/melcloud_home/strings.json b/homeassistant/components/melcloud_home/strings.json index d00bb32cd930..5c095a648d04 100644 --- a/homeassistant/components/melcloud_home/strings.json +++ b/homeassistant/components/melcloud_home/strings.json @@ -90,13 +90,13 @@ }, "exceptions": { "cannot_connect": { - "message": "Error communicating with MELCloud Home API: {error}" + "message": "Error communicating with MELCloud Home API" }, "invalid_auth": { - "message": "An error occurred while trying to authenticate: {error}" + "message": "An error occurred while trying to authenticate" }, "timeout_connect": { - "message": "Timeout while communicating with MELCloud Home API: {error}" + "message": "Timeout while communicating with MELCloud Home API" } } }