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.
This commit is contained in:
Tsvi Mostovicz 2019-04-15 20:56:32 +03:00 committed by Paulus Schoutsen
parent c341e33749
commit d894025365

View File

@ -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')