mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Final test added to get to 100% coverage for groups
This commit is contained in:
parent
c6cb2c27bd
commit
fa1b5b846e
@ -80,6 +80,9 @@ class TestComponentsGroup(unittest.TestCase):
|
|||||||
self.hass, 'chromecasts',
|
self.hass, 'chromecasts',
|
||||||
['cast.living_room', 'cast.bedroom']))
|
['cast.living_room', 'cast.bedroom']))
|
||||||
|
|
||||||
|
# Try to setup an empty group
|
||||||
|
self.assertFalse(group.setup_group(self.hass, 'nothing', []))
|
||||||
|
|
||||||
def test__get_group_type(self):
|
def test__get_group_type(self):
|
||||||
""" Test _get_group_type method. """
|
""" Test _get_group_type method. """
|
||||||
self.assertEqual('on_off', group._get_group_type(comps.STATE_ON))
|
self.assertEqual('on_off', group._get_group_type(comps.STATE_ON))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user