mirror of
https://github.com/home-assistant/core.git
synced 2025-11-13 04:50:17 +00:00
Use is in ConfigEntryState enum comparison in tests (N-Z) (#114926)
This commit is contained in:
@@ -68,7 +68,7 @@ async def test_failures_parametrized(
|
||||
"""Test outcomes when changing errors."""
|
||||
setattr(reolink_connect, attr, value)
|
||||
assert await hass.config_entries.async_setup(config_entry.entry_id) is (
|
||||
expected == ConfigEntryState.LOADED
|
||||
expected is ConfigEntryState.LOADED
|
||||
)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
@@ -88,7 +88,7 @@ async def test_firmware_error_twice(
|
||||
assert await hass.config_entries.async_setup(config_entry.entry_id) is True
|
||||
await hass.async_block_till_done()
|
||||
|
||||
assert config_entry.state == ConfigEntryState.LOADED
|
||||
assert config_entry.state is ConfigEntryState.LOADED
|
||||
|
||||
entity_id = f"{Platform.UPDATE}.{TEST_NVR_NAME}_firmware"
|
||||
assert hass.states.is_state(entity_id, STATE_OFF)
|
||||
|
||||
Reference in New Issue
Block a user