mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
Update for file header, docstrings, and PEP8/PEP257
This commit is contained in:
@@ -1,10 +1,9 @@
|
||||
"""
|
||||
tests.components.switch.template
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Tests template switch.
|
||||
"""
|
||||
|
||||
import homeassistant.core as ha
|
||||
import homeassistant.components as core
|
||||
import homeassistant.components.switch as switch
|
||||
@@ -27,7 +26,6 @@ class TestTemplateSwitch:
|
||||
|
||||
self.hass.services.register('test', 'automation', record_call)
|
||||
|
||||
|
||||
def teardown_method(self, method):
|
||||
""" Stop down stuff we started. """
|
||||
self.hass.stop()
|
||||
@@ -53,7 +51,6 @@ class TestTemplateSwitch:
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
state = self.hass.states.set('switch.test_state', STATE_ON)
|
||||
self.hass.pool.block_till_done()
|
||||
|
||||
@@ -66,7 +63,6 @@ class TestTemplateSwitch:
|
||||
state = self.hass.states.get('switch.test_template_switch')
|
||||
assert state.state == STATE_OFF
|
||||
|
||||
|
||||
def test_template_state_boolean_on(self):
|
||||
assert switch.setup(self.hass, {
|
||||
'switch': {
|
||||
@@ -278,7 +274,6 @@ class TestTemplateSwitch:
|
||||
|
||||
assert 1 == len(self.calls)
|
||||
|
||||
|
||||
def test_off_action(self):
|
||||
assert switch.setup(self.hass, {
|
||||
'switch': {
|
||||
|
||||
Reference in New Issue
Block a user