Add toggle service to input_boolean (#3432)
This commit is contained in:
parent
c89a77dc74
commit
de4cc5034e
2 changed files with 25 additions and 8 deletions
|
@ -63,6 +63,13 @@ class TestInputBoolean(unittest.TestCase):
|
|||
self.assertFalse(
|
||||
input_boolean.is_on(self.hass, entity_id))
|
||||
|
||||
input_boolean.toggle(self.hass, entity_id)
|
||||
|
||||
self.hass.block_till_done()
|
||||
|
||||
self.assertTrue(
|
||||
input_boolean.is_on(self.hass, entity_id))
|
||||
|
||||
def test_config_options(self):
|
||||
"""Test configuration options."""
|
||||
count_start = len(self.hass.states.entity_ids())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue