Switch group to use None for the state unknown case (#40792)
This commit is contained in:
1 parent
082f866620
commit
42ad36e9f8
2 files changed
+6
-7
No files matched your search
@@ -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."""
|
||||
|
||||
Reference in new issue
Block a user