Initial support for Config Entries (#12079)
* Introduce Config Entries * Rebase fail * Address comments * Address more comments * RequestDataValidator moved
This commit is contained in:
1 parent
2053c8a908
commit
b3a47722f0
15 files changed
+1622
-29
No files matched your search
@@ -3,7 +3,6 @@ import unittest
|
||||
|
||||
from homeassistant.helpers.template import Template
|
||||
from homeassistant.components.sensor import command_line
|
||||
from homeassistant import setup
|
||||
from tests.common import get_test_home_assistant
|
||||
|
||||
|
||||
@@ -40,16 +39,6 @@ class TestCommandSensorSensor(unittest.TestCase):
|
||||
self.assertEqual('in', entity.unit_of_measurement)
|
||||
self.assertEqual('5', entity.state)
|
||||
|
||||
def test_setup_bad_config(self):
|
||||
"""Test setup with a bad configuration."""
|
||||
config = {'name': 'test',
|
||||
'platform': 'not_command_line',
|
||||
}
|
||||
|
||||
self.assertFalse(setup.setup_component(self.hass, 'test', {
|
||||
'command_line': config,
|
||||
}))
|
||||
|
||||
def test_template(self):
|
||||
"""Test command sensor with template."""
|
||||
data = command_line.CommandSensorData(self.hass, 'echo 50')
|
||||
|
||||
Reference in new issue
Block a user