Use set literals in tests (#33669)
This commit is contained in:
parent
d267d674b9
commit
03dd92d51b
9 changed files with 24 additions and 28 deletions
|
@ -295,7 +295,7 @@ class TestComponentsGroup(unittest.TestCase):
|
|||
|
||||
group_state = self.hass.states.get(f"{group.DOMAIN}.second_group")
|
||||
assert STATE_ON == group_state.state
|
||||
assert set((test_group.entity_id, "light.bowl")) == set(
|
||||
assert {test_group.entity_id, "light.bowl"} == set(
|
||||
group_state.attributes["entity_id"]
|
||||
)
|
||||
assert group_state.attributes.get(group.ATTR_AUTO) is None
|
||||
|
@ -304,7 +304,7 @@ class TestComponentsGroup(unittest.TestCase):
|
|||
|
||||
group_state = self.hass.states.get(f"{group.DOMAIN}.test_group")
|
||||
assert STATE_UNKNOWN == group_state.state
|
||||
assert set(("sensor.happy", "hello.world")) == set(
|
||||
assert {"sensor.happy", "hello.world"} == set(
|
||||
group_state.attributes["entity_id"]
|
||||
)
|
||||
assert group_state.attributes.get(group.ATTR_AUTO) is None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue