Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Less use of hass.data[DECONZ_DOMAIN] in deCONZ tests #122657

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix review comment
  • Loading branch information
Kane610 committed Jul 26, 2024
commit 399801a1b899c127393271453ce9c766db0c06ef
4 changes: 2 additions & 2 deletions tests/components/deconz/test_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ async def test_get_deconz_api_fails(
with patch("pydeconz.DeconzSession.refresh_state", side_effect=side_effect):
Kane610 marked this conversation as resolved.
Show resolved Hide resolved
await hass.config_entries.async_setup(config_entry.entry_id)
await hass.async_block_till_done()
assert config_entry.state == state
assert config_entry.state is state


async def test_setup_entry_fails_trigger_reauth_flow(
Expand All @@ -63,7 +63,7 @@ async def test_setup_entry_fails_trigger_reauth_flow(
):
config_entry = await config_entry_factory()
mock_flow_init.assert_called_once()
assert config_entry.state == ConfigEntryState.SETUP_ERROR
assert config_entry.state is ConfigEntryState.SETUP_ERROR


async def test_setup_entry_multiple_gateways(
Expand Down