Update for file header, docstrings, and PEP8/PEP257
This commit is contained in:
parent
34b91cf6ce
commit
00afaac54c
74 changed files with 212 additions and 211 deletions
|
@ -1,6 +1,6 @@
|
|||
"""
|
||||
tests.components.switch.test_command_switch
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Tests command switch.
|
||||
"""
|
||||
|
@ -55,7 +55,6 @@ class TestCommandSwitch(unittest.TestCase):
|
|||
state = self.hass.states.get('switch.test')
|
||||
self.assertEqual(STATE_OFF, state.state)
|
||||
|
||||
|
||||
def test_state_value(self):
|
||||
with tempfile.TemporaryDirectory() as tempdirname:
|
||||
path = os.path.join(tempdirname, 'switch_status')
|
||||
|
@ -79,7 +78,7 @@ class TestCommandSwitch(unittest.TestCase):
|
|||
|
||||
switch.turn_on(self.hass, 'switch.test')
|
||||
self.hass.pool.block_till_done()
|
||||
|
||||
|
||||
state = self.hass.states.get('switch.test')
|
||||
self.assertEqual(STATE_ON, state.state)
|
||||
|
||||
|
@ -89,7 +88,6 @@ class TestCommandSwitch(unittest.TestCase):
|
|||
state = self.hass.states.get('switch.test')
|
||||
self.assertEqual(STATE_OFF, state.state)
|
||||
|
||||
|
||||
def test_state_json_value(self):
|
||||
with tempfile.TemporaryDirectory() as tempdirname:
|
||||
path = os.path.join(tempdirname, 'switch_status')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue