From 2a18d0a764eaa5eaf02180081b5809e06fc77f12 Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Tue, 18 Jul 2023 13:37:17 +0200 Subject: [PATCH] Do not include stack trace when shell_command service times out (#96833) --- homeassistant/components/shell_command/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/shell_command/__init__.py b/homeassistant/components/shell_command/__init__.py index 0cc979a321f..36c3a5dbda5 100644 --- a/homeassistant/components/shell_command/__init__.py +++ b/homeassistant/components/shell_command/__init__.py @@ -86,7 +86,7 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool: async with async_timeout.timeout(COMMAND_TIMEOUT): stdout_data, stderr_data = await process.communicate() except asyncio.TimeoutError: - _LOGGER.exception( + _LOGGER.error( "Timed out running command: `%s`, after: %ss", cmd, COMMAND_TIMEOUT ) if process: