mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 15:17:35 +00:00
Fix missing exception translation in tibber (#131287)
This commit is contained in:
parent
46abf9790b
commit
9991a3b688
@ -79,7 +79,6 @@ def __get_date(date_input: str | None, mode: str | None) -> datetime:
|
|||||||
return dt_util.as_local(value)
|
return dt_util.as_local(value)
|
||||||
|
|
||||||
raise ServiceValidationError(
|
raise ServiceValidationError(
|
||||||
"Invalid datetime provided.",
|
|
||||||
translation_domain=DOMAIN,
|
translation_domain=DOMAIN,
|
||||||
translation_key="invalid_date",
|
translation_key="invalid_date",
|
||||||
translation_placeholders={
|
translation_placeholders={
|
||||||
|
@ -119,6 +119,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"exceptions": {
|
"exceptions": {
|
||||||
|
"invalid_date": {
|
||||||
|
"message": "Invalid datetime provided {date}"
|
||||||
|
},
|
||||||
"send_message_timeout": {
|
"send_message_timeout": {
|
||||||
"message": "Timeout sending message with Tibber"
|
"message": "Timeout sending message with Tibber"
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user