mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 23:27:37 +00:00
Add error details in remote calendar flow (#141753)
* Add error details in remote calendar flow * no args * adjust * json * Apply suggestions * remove description placeholder
This commit is contained in:
parent
9692d637ca
commit
f290199606
@ -69,7 +69,10 @@ class RemoteCalendarConfigFlow(ConfigFlow, domain=DOMAIN):
|
|||||||
)
|
)
|
||||||
except CalendarParseError as err:
|
except CalendarParseError as err:
|
||||||
errors["base"] = "invalid_ics_file"
|
errors["base"] = "invalid_ics_file"
|
||||||
_LOGGER.debug("Invalid .ics file: %s", err)
|
_LOGGER.error("Error reading the calendar information: %s", err.message)
|
||||||
|
_LOGGER.debug(
|
||||||
|
"Additional calendar error detail: %s", str(err.detailed_error)
|
||||||
|
)
|
||||||
else:
|
else:
|
||||||
return self.async_create_entry(
|
return self.async_create_entry(
|
||||||
title=user_input[CONF_CALENDAR_NAME], data=user_input
|
title=user_input[CONF_CALENDAR_NAME], data=user_input
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
"error": {
|
"error": {
|
||||||
"cannot_connect": "[%key:common::config_flow::error::cannot_connect%]",
|
"cannot_connect": "[%key:common::config_flow::error::cannot_connect%]",
|
||||||
"forbidden": "The server understood the request but refuses to authorize it.",
|
"forbidden": "The server understood the request but refuses to authorize it.",
|
||||||
"invalid_ics_file": "[%key:component::local_calendar::config::error::invalid_ics_file%]"
|
"invalid_ics_file": "There was a problem reading the calendar information. See the error log for additional details."
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"exceptions": {
|
"exceptions": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user