mirror of
https://github.com/home-assistant/core.git
synced 2025-05-01 12:47:53 +00:00
Add exception translations (#120937)
This commit is contained in:
parent
788d1999ff
commit
52b743e88a
@ -78,8 +78,9 @@ class AzureDevOpsDataUpdateCoordinator(DataUpdateCoordinator[AzureDevOpsData]):
|
|||||||
)
|
)
|
||||||
if not self.client.authorized:
|
if not self.client.authorized:
|
||||||
raise ConfigEntryAuthFailed(
|
raise ConfigEntryAuthFailed(
|
||||||
"Could not authorize with Azure DevOps. You will need to update your"
|
translation_domain=DOMAIN,
|
||||||
" token"
|
translation_key="authentication_failed",
|
||||||
|
translation_placeholders={"title": self.title},
|
||||||
)
|
)
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
@ -62,5 +62,10 @@
|
|||||||
"name": "{definition_name} latest build url"
|
"name": "{definition_name} latest build url"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"exceptions": {
|
||||||
|
"authentication_failed": {
|
||||||
|
"message": "Could not authorize with Azure DevOps for {title}. You will need to update your personal access token."
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user