Use is in ConfigEntryState enum comparison in tests (N-Z) (#114926)

This commit is contained in:
epenet 2024-04-05 17:37:00 +02:00 committed by GitHub
parent f2c091fe0c
commit 9204ccfa17
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
107 changed files with 332 additions and 321 deletions

View file

@ -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):