-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: handle binary sensors updates in the coordinator (#1003)
- Loading branch information
Showing
3 changed files
with
56 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1140,10 +1140,9 @@ async def test_email_search_none(mock_imap_search_error_none, caplog): | |
|
||
@pytest.mark.asyncio | ||
async def test_amazon_shipped_fwd(hass, mock_imap_amazon_fwd, caplog): | ||
result = get_items(mock_imap_amazon_fwd, "order", fwds="[email protected]" ,the_domain="amazon.com") | ||
assert ( | ||
"Amazon email list: ['[email protected]', 'amazon.com']" | ||
in caplog.text | ||
result = get_items( | ||
mock_imap_amazon_fwd, "order", fwds="[email protected]", the_domain="amazon.com" | ||
) | ||
assert "Amazon email list: ['[email protected]', 'amazon.com']" in caplog.text | ||
assert result == ["123-1234567-1234567"] | ||
assert "First pass: Tuesday, January 11" in caplog.text |