Clean up template platforms
This commit is contained in:
1 parent
70ce179224
commit
41f205e09d
5 files changed
+82
-89
No files matched your search
@@ -54,7 +54,7 @@ class TestTemplateSensor:
|
||||
self.hass.states.set('sensor.test_state', 'Works')
|
||||
self.hass.pool.block_till_done()
|
||||
state = self.hass.states.get('sensor.test_template_sensor')
|
||||
assert state.state == 'error'
|
||||
assert state.state == 'unknown'
|
||||
|
||||
def test_template_attribute_missing(self):
|
||||
"""Test missing attribute template."""
|
||||
@@ -71,7 +71,7 @@ class TestTemplateSensor:
|
||||
})
|
||||
|
||||
state = self.hass.states.get('sensor.test_template_sensor')
|
||||
assert state.state == 'error'
|
||||
assert state.state == 'unknown'
|
||||
|
||||
def test_invalid_name_does_not_create(self):
|
||||
"""Test invalid name."""
|
||||
|
||||
Reference in new issue
Block a user