Fix missing exception translation in tibber (#131287)

This commit is contained in:
epenet 2024-11-22 17:37:11 +01:00 committed by GitHub
parent 46abf9790b
commit 9991a3b688
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View File

@ -79,7 +79,6 @@ def __get_date(date_input: str | None, mode: str | None) -> datetime:
return dt_util.as_local(value)
raise ServiceValidationError(
"Invalid datetime provided.",
translation_domain=DOMAIN,
translation_key="invalid_date",
translation_placeholders={

View File

@ -119,6 +119,9 @@
}
},
"exceptions": {
"invalid_date": {
"message": "Invalid datetime provided {date}"
},
"send_message_timeout": {
"message": "Timeout sending message with Tibber"
}