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

View file

@ -30,7 +30,7 @@ class TestShellCommand(unittest.TestCase):
path = os.path.join(tempdirname, 'called.txt')
self.assertTrue(shell_command.setup(self.hass, {
'shell_command': {
'test_service': "touch {}".format(path)
'test_service': "date > {}".format(path)
}
}))