From b7bf302ef8b663a2e4947b4ceeb52465dc081d3d Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Mon, 31 Jan 2022 18:42:49 +0100 Subject: [PATCH] Ensure PVOutput connection error is logged (#65319) --- homeassistant/components/pvoutput/config_flow.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/pvoutput/config_flow.py b/homeassistant/components/pvoutput/config_flow.py index aa197061466..a1933ff9315 100644 --- a/homeassistant/components/pvoutput/config_flow.py +++ b/homeassistant/components/pvoutput/config_flow.py @@ -12,7 +12,7 @@ from homeassistant.core import HomeAssistant from homeassistant.data_entry_flow import FlowResult from homeassistant.helpers.aiohttp_client import async_get_clientsession -from .const import CONF_SYSTEM_ID, DOMAIN +from .const import CONF_SYSTEM_ID, DOMAIN, LOGGER async def validate_input(hass: HomeAssistant, *, api_key: str, system_id: int) -> None: @@ -50,6 +50,7 @@ class PVOutputFlowHandler(ConfigFlow, domain=DOMAIN): except PVOutputAuthenticationError: errors["base"] = "invalid_auth" except PVOutputError: + LOGGER.exception("Cannot connect to PVOutput") errors["base"] = "cannot_connect" else: await self.async_set_unique_id(str(user_input[CONF_SYSTEM_ID]))