Add toggle service to input_boolean (#3432)

This commit is contained in:
Pascal Vizeli 2016-09-18 19:18:44 +02:00 committed by Paulus Schoutsen
parent c89a77dc74
commit de4cc5034e
2 changed files with 25 additions and 8 deletions

View file

@ -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())