Switch group to use None for the state unknown case (#40792)

This commit is contained in:
J. Nick Koston authored and GitHub committed 2020-09-30 17:25:50 +02:00
1 parent 082f866620
commit 42ad36e9f8
2 files changed
+6 -7

No files matched your search

+2 -2
View File
@@ -67,13 +67,13 @@ class TestComponentsGroup(unittest.TestCase):
self.hass, "chromecasts", ["cast.living_room", "cast.bedroom"]
)
assert STATE_UNKNOWN == grp.state
assert grp.state is None
def test_setup_empty_group(self):
"""Try to set up an empty group."""
grp = group.Group.create_group(self.hass, "nothing", [])
assert STATE_UNKNOWN == grp.state
assert grp.state is None
def test_monitor_group(self):
"""Test if the group keeps track of states."""