mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 18:57:06 +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)))
|
command = str(' '.join([prog] + shlex.split(rendered_args)))
|
||||||
shell = True
|
shell = True
|
||||||
try:
|
try:
|
||||||
_LOGGER.info("Running command: %s", command)
|
_LOGGER.debug("Running command: %s", command)
|
||||||
return_value = subprocess.check_output(
|
return_value = subprocess.check_output(
|
||||||
command, shell=shell, timeout=self.timeout)
|
command, shell=shell, timeout=self.timeout)
|
||||||
self.value = return_value.strip().decode('utf-8')
|
self.value = return_value.strip().decode('utf-8')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user