diff --git a/homeassistant/components/met/coordinator.py b/homeassistant/components/met/coordinator.py index b2c43cb1361..0ba3b9e1626 100644 --- a/homeassistant/components/met/coordinator.py +++ b/homeassistant/components/met/coordinator.py @@ -116,8 +116,12 @@ class MetDataUpdateCoordinator(DataUpdateCoordinator[MetWeatherData]): """Fetch data from Met.""" try: return await self.weather.fetch_data() - except Exception as err: - raise UpdateFailed(f"Update failed: {err}") from err + except CannotConnect as err: + raise UpdateFailed( + translation_domain=DOMAIN, + translation_key="update_failed", + translation_placeholders={"error": str(err)}, + ) from err def track_home(self) -> None: """Start tracking changes to HA home setting.""" diff --git a/homeassistant/components/met/strings.json b/homeassistant/components/met/strings.json index 6ac527775a0..7bd13b37531 100644 --- a/homeassistant/components/met/strings.json +++ b/homeassistant/components/met/strings.json @@ -19,6 +19,11 @@ } } }, + "exceptions": { + "update_failed": { + "message": "Update of data from the web site failed: {error}" + } + }, "options": { "step": { "init": {