Suppress imap logging on reconnect and presume state (#90826)

This commit is contained in:
Jan Bouwhuis 2023-04-05 12:18:16 +02:00 committed by GitHub
parent 58ac8404ef
commit 94817f61e5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 11 deletions

View file

@ -313,9 +313,9 @@ async def test_lost_connection_with_imap_push(
assert "Lost imap.server.com (will attempt to reconnect after 10 s)" in caplog.text
state = hass.states.get("sensor.imap_email_email_com")
# we should have an entity with an unavailable state
# Our entity should keep its current state as this
assert state is not None
assert state.state == STATE_UNAVAILABLE
assert state.state == "0"
@pytest.mark.parametrize("imap_has_capability", [True], ids=["push"])