mirror of
https://github.com/home-assistant/core.git
synced 2025-04-22 16:27:56 +00:00
test that all lights turn off when no entity id is given (#7981)
This commit is contained in:
parent
f2feabcf0b
commit
ba80d5e52a
@ -71,6 +71,15 @@ class TestDemoLight(unittest.TestCase):
|
||||
self.hass.block_till_done()
|
||||
self.assertFalse(light.is_on(self.hass, ENTITY_LIGHT))
|
||||
|
||||
def test_turn_off_without_entity_id(self):
|
||||
"""Test light turn off all lights."""
|
||||
light.turn_on(self.hass, ENTITY_LIGHT)
|
||||
self.hass.block_till_done()
|
||||
self.assertTrue(light.is_on(self.hass, ENTITY_LIGHT))
|
||||
light.turn_off(self.hass)
|
||||
self.hass.block_till_done()
|
||||
self.assertFalse(light.is_on(self.hass, ENTITY_LIGHT))
|
||||
|
||||
|
||||
@asyncio.coroutine
|
||||
def test_restore_state(hass):
|
||||
|
Loading…
x
Reference in New Issue
Block a user