Use available, remove state, improve true,false tests.
This commit is contained in:
1 parent
ced380f0cd
commit
2622cf2e53
2 files changed
+13
-15
No files matched your search
@@ -139,7 +139,7 @@ class TestTemplateSwitch:
|
||||
state = self.hass.states.set('switch.test_state', STATE_ON)
|
||||
self.hass.pool.block_till_done()
|
||||
state = self.hass.states.get('switch.test_template_switch')
|
||||
assert state.state == 'error'
|
||||
assert state.state == 'unavailable'
|
||||
|
||||
def test_invalid_name_does_not_create(self):
|
||||
assert switch.setup(self.hass, {
|
||||
|
||||
Reference in new issue
Block a user