Suppress imap logging on reconnect and presume state (#90826)
This commit is contained in:
parent
58ac8404ef
commit
94817f61e5
2 changed files with 8 additions and 11 deletions
|
@ -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"])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue