Use is in ConfigEntryState enum comparison in tests (A-M) (#114925)

This commit is contained in:
epenet 2024-04-05 17:16:55 +02:00 committed by GitHub
parent dd8de14cc5
commit 0b01326f9f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
99 changed files with 302 additions and 295 deletions

View file

@ -17,6 +17,7 @@ from homeassistant.components.dnsip.const import (
CONF_RESOLVER_IPV6,
DOMAIN,
)
from homeassistant.config_entries import ConfigEntryState
from homeassistant.const import CONF_NAME
from homeassistant.core import HomeAssistant
from homeassistant.data_entry_flow import FlowResultType
@ -227,7 +228,7 @@ async def test_options_flow(hass: HomeAssistant) -> None:
"resolver_ipv6": "2001:4860:4860::8888",
}
assert entry.state == config_entries.ConfigEntryState.LOADED
assert entry.state is ConfigEntryState.LOADED
async def test_options_flow_empty_return(hass: HomeAssistant) -> None: