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

This commit is contained in:
J. Nick Koston 2020-09-30 10:25:50 -05:00 committed by GitHub
parent 082f866620
commit 42ad36e9f8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 7 deletions

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."""