mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 01:37:08 +00:00
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:
parent
c341e33749
commit
d894025365
@ -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')
|
||||
|
Loading…
x
Reference in New Issue
Block a user