mirror of
https://github.com/home-assistant/core.git
synced 2026-09-24 15:31:52 -05:00
Bugfix windows have a other default loop now (#4195)
* Bugfix windows have a other default loop now * fix handling with 3.4.2 that not support ensure_future * make the same as ensure_future does * fix spell * fix lazy test
This commit is contained in:
@@ -368,9 +368,11 @@ class TestComponentsGroup(unittest.TestCase):
|
||||
# Hide the group
|
||||
group.set_visibility(self.hass, group_entity_id, False)
|
||||
group_state = self.hass.states.get(group_entity_id)
|
||||
self.hass.block_till_done()
|
||||
self.assertTrue(group_state.attributes.get(ATTR_HIDDEN))
|
||||
|
||||
# Show it again
|
||||
group.set_visibility(self.hass, group_entity_id, True)
|
||||
group_state = self.hass.states.get(group_entity_id)
|
||||
self.hass.block_till_done()
|
||||
self.assertIsNone(group_state.attributes.get(ATTR_HIDDEN))
|
||||
|
||||
Reference in New Issue
Block a user