mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Add Reolink unexpected error translation (#134807)
This commit is contained in:
parent
eff440d2a8
commit
7a2a6cf7d8
@ -89,6 +89,9 @@
|
||||
"timeout": {
|
||||
"message": "Timeout waiting on a response: {err}"
|
||||
},
|
||||
"unexpected": {
|
||||
"message": "Unexpected Reolink error: {err}"
|
||||
},
|
||||
"firmware_install_error": {
|
||||
"message": "Error trying to update Reolink firmware: {err}"
|
||||
},
|
||||
|
@ -168,6 +168,10 @@ def raise_translated_error(
|
||||
translation_placeholders={"err": str(err)},
|
||||
) from err
|
||||
except ReolinkError as err:
|
||||
raise HomeAssistantError(err) from err
|
||||
raise HomeAssistantError(
|
||||
translation_domain=DOMAIN,
|
||||
translation_key="unexpected",
|
||||
translation_placeholders={"err": str(err)},
|
||||
) from err
|
||||
|
||||
return decorator_raise_translated_error
|
||||
|
Loading…
x
Reference in New Issue
Block a user