mirror of
https://github.com/home-assistant/core.git
synced 2026-09-24 15:31:52 -05:00
Homee: fix unavailable entities - 2nd FollowUp (#175382)
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
co-authored by
Copilot Autofix powered by AI
parent
e9424fa0a0
commit
949ada2e72
@@ -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
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user