From d8940253651ee735270764d8e131ea6178b1e1fc Mon Sep 17 00:00:00 2001 From: Tsvi Mostovicz Date: Mon, 15 Apr 2019 20:56:32 +0300 Subject: [PATCH] Lower verbosity of command line sensor (#23120) The command line sensor prints every minute the command that is run. This fills up the log. The command run should be a debug statement. --- homeassistant/components/command_line/sensor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/command_line/sensor.py b/homeassistant/components/command_line/sensor.py index 16d39762879..587cfe53d3c 100644 --- a/homeassistant/components/command_line/sensor.py +++ b/homeassistant/components/command_line/sensor.py @@ -165,7 +165,7 @@ class CommandSensorData: command = str(' '.join([prog] + shlex.split(rendered_args))) shell = True try: - _LOGGER.info("Running command: %s", command) + _LOGGER.debug("Running command: %s", command) return_value = subprocess.check_output( command, shell=shell, timeout=self.timeout) self.value = return_value.strip().decode('utf-8')