Do not include stack trace when shell_command service times out (#96833)

This commit is contained in:
Erik Montnemery 2023-07-18 13:37:17 +02:00 committed by GitHub
parent 9a2a920fd4
commit 2a18d0a764
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -86,7 +86,7 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
async with async_timeout.timeout(COMMAND_TIMEOUT): async with async_timeout.timeout(COMMAND_TIMEOUT):
stdout_data, stderr_data = await process.communicate() stdout_data, stderr_data = await process.communicate()
except asyncio.TimeoutError: except asyncio.TimeoutError:
_LOGGER.exception( _LOGGER.error(
"Timed out running command: `%s`, after: %ss", cmd, COMMAND_TIMEOUT "Timed out running command: `%s`, after: %ss", cmd, COMMAND_TIMEOUT
) )
if process: if process: