Use is/is not for same-enum identity comparisons (tests) (#171689)

This commit is contained in:
Ariel Ebersberger
2026-05-22 11:32:27 +02:00
committed by GitHub
parent 8098f4f6bc
commit 5432d29489
98 changed files with 733 additions and 733 deletions
@@ -147,7 +147,7 @@ async def test_setup_entry_fails_when_listing_devices(
"""Test error handling when list_devices in setup of entry."""
mock_list_devices.side_effect = error
entry = await configure_integration(hass)
assert entry.state == state
assert entry.state is state
hass.bus.async_fire(EVENT_HOMEASSISTANT_START)
await hass.async_block_till_done()