mirror of
https://github.com/home-assistant/core.git
synced 2026-09-28 02:18:10 -04:00
Use is/is not for same-enum identity comparisons (tests) (#171689)
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user