From 2d39eaf0a21e9a4cb148aa7f1791bcc34e94aea9 Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Tue, 14 Nov 2023 14:05:46 +0100 Subject: [PATCH] Improve docstring of config.stringify_invalid (#103965) --- homeassistant/config.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/homeassistant/config.py b/homeassistant/config.py index b35ba910ac3..569c059e9c2 100644 --- a/homeassistant/config.py +++ b/homeassistant/config.py @@ -581,8 +581,9 @@ def find_annotation( def stringify_invalid(ex: vol.Invalid) -> str: """Stringify voluptuous.Invalid. - Based on voluptuous.error.Invalid.__str__, the main modification - is to format the path delimited by -> instead of @data[]. + This is an alternative to the custom __str__ implemented in + voluptuous.error.Invalid. The main modification is to format + the path delimited by -> instead of @data[]. """ path = "->".join(str(m) for m in ex.path) # This function is an alternative to the stringification done by