Allow pipes in command sensors and services

This commit is contained in:
Paulus Schoutsen
2015-10-24 12:40:36 -07:00
parent e461ceae36
commit 96181a555a
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ def setup(hass, config):
def service_handler(call):
""" Execute a shell command service. """
try:
subprocess.call(conf[call.service].split(' '),
subprocess.call(conf[call.service], shell=True,
stdout=subprocess.DEVNULL,
stderr=subprocess.DEVNULL)
except subprocess.SubprocessError: