diff --git a/tests/components/homee/test_init.py b/tests/components/homee/test_init.py index 66c4effe49ae..b601b4de294e 100644 --- a/tests/components/homee/test_init.py +++ b/tests/components/homee/test_init.py @@ -147,9 +147,9 @@ async def test_attribute_availability( await hass.async_block_till_done() assert ( - hass.states.get("siren.test_siren").state is not STATE_UNAVAILABLE + hass.states.get("siren.test_siren").state != STATE_UNAVAILABLE if state < AttributeState.INACTIVE - else STATE_UNAVAILABLE + else hass.states.get("siren.test_siren").state == STATE_UNAVAILABLE )