Add missing context in homewizard assistant error (#85397)

This commit is contained in:
eMerzh
2023-01-09 02:09:37 +01:00
committed by GitHub
parent 6ce88cd5af
commit c4c64a8bed

View File

@@ -160,6 +160,11 @@ class ConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
return self.async_show_form(
step_id="discovery_confirm",
errors={"base": ex.error_code},
description_placeholders={
CONF_PRODUCT_TYPE: cast(str, self.config[CONF_PRODUCT_TYPE]),
CONF_SERIAL: cast(str, self.config[CONF_SERIAL]),
CONF_IP_ADDRESS: cast(str, self.config[CONF_IP_ADDRESS]),
},
)
return self.async_create_entry(