Use is in ConfigEntryState enum comparison in tests (N-Z) (#114926)
This commit is contained in:
parent
f2c091fe0c
commit
9204ccfa17
107 changed files with 332 additions and 321 deletions
|
@ -17,7 +17,7 @@ from tests.typing import WebSocketGenerator
|
|||
async def test_setup_retry_client_os_error(hass: HomeAssistant) -> None:
|
||||
"""Verify we retry setup on aiohttp.ClientOSError."""
|
||||
config_entry = await async_init_integration(hass, exception=aiohttp.ClientOSError)
|
||||
assert config_entry.state == ConfigEntryState.SETUP_RETRY
|
||||
assert config_entry.state is ConfigEntryState.SETUP_RETRY
|
||||
|
||||
|
||||
async def remove_device(ws_client, device_id, config_entry_id):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue