Disable Hue groups for new setups (#31713)
This commit is contained in:
parent
3df2cb6b78
commit
81b159f424
4 changed files with 29 additions and 11 deletions
|
@ -79,6 +79,7 @@ async def test_flow_works(hass):
|
|||
assert result["data"] == {
|
||||
"host": "1.2.3.4",
|
||||
"username": "home-assistant#test-home",
|
||||
"allow_hue_groups": False,
|
||||
}
|
||||
|
||||
assert len(mock_bridge.initialize.mock_calls) == 1
|
||||
|
@ -440,6 +441,7 @@ async def test_creating_entry_removes_entries_for_same_host_or_bridge(hass):
|
|||
assert result["data"] == {
|
||||
"host": "2.2.2.2",
|
||||
"username": "username-abc",
|
||||
"allow_hue_groups": False,
|
||||
}
|
||||
entries = hass.config_entries.async_entries("hue")
|
||||
assert len(entries) == 2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue