mirror of
https://github.com/home-assistant/core.git
synced 2025-08-05 21:55:10 +02:00
Update Shelly integration: Remove double "Error fetching ..." from error messages (#134950)
refactor: Remove double "Error fetching" from error messages
This commit is contained in:
@@ -371,7 +371,7 @@ class ShellyBlockCoordinator(ShellyCoordinatorBase[BlockDevice]):
|
||||
try:
|
||||
await self.device.update()
|
||||
except DeviceConnectionError as err:
|
||||
raise UpdateFailed(f"Error fetching data: {err!r}") from err
|
||||
raise UpdateFailed(repr(err)) from err
|
||||
except InvalidAuthError:
|
||||
await self.async_shutdown_device_and_start_reauth()
|
||||
|
||||
@@ -456,7 +456,7 @@ class ShellyRestCoordinator(ShellyCoordinatorBase[BlockDevice]):
|
||||
return
|
||||
await self.device.update_shelly()
|
||||
except (DeviceConnectionError, MacAddressMismatchError) as err:
|
||||
raise UpdateFailed(f"Error fetching data: {err!r}") from err
|
||||
raise UpdateFailed(repr(err)) from err
|
||||
except InvalidAuthError:
|
||||
await self.async_shutdown_device_and_start_reauth()
|
||||
else:
|
||||
|
Reference in New Issue
Block a user