mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 04:50:05 +00:00
Add toggle service to input_boolean (#3432)
This commit is contained in:
committed by
Paulus Schoutsen
parent
c89a77dc74
commit
de4cc5034e
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user