Fix for assumed state in command_line (#5578)

* Bug fix for assumed state in command_line

* command line

* command line

* command line

* command line test
This commit is contained in:
Daniel Høyer Iversen authored and Paulus Schoutsen committed 2017-01-26 21:41:30 -08:00
1 parent fb49c588e5
commit a465a45588
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -159,7 +159,7 @@ class TestCommandSwitch(unittest.TestCase):
state = self.hass.states.get('switch.test')
self.assertEqual(STATE_ON, state.state)
def test_assumed_state_should_be_true_if_command_state_is_false(self):
def test_assumed_state_should_be_true_if_command_state_is_none(self):
"""Test with state value."""
# args: hass, device_name, friendly_name, command_on, command_off,
# command_state, value_template
@@ -169,7 +169,7 @@ class TestCommandSwitch(unittest.TestCase):
"Test friendly name!",
"echo 'on command'",
"echo 'off command'",
False,
None,
None,
]