Use asynctest-mock in most places (#35109)
* Use asynctest-mock in most places * Fix broken patch in pilight
This commit is contained in:
parent
e7fc886992
commit
2af984917e
319 changed files with 456 additions and 522 deletions
|
@ -1,7 +1,6 @@
|
|||
"""The tests for the broadlink component."""
|
||||
from base64 import b64decode
|
||||
from datetime import timedelta
|
||||
from unittest.mock import MagicMock, call, patch
|
||||
|
||||
import pytest
|
||||
|
||||
|
@ -9,6 +8,8 @@ from homeassistant.components.broadlink import async_setup_service, data_packet
|
|||
from homeassistant.components.broadlink.const import DOMAIN, SERVICE_LEARN, SERVICE_SEND
|
||||
from homeassistant.util.dt import utcnow
|
||||
|
||||
from tests.async_mock import MagicMock, call, patch
|
||||
|
||||
DUMMY_IR_PACKET = (
|
||||
"JgBGAJKVETkRORA6ERQRFBEUERQRFBE5ETkQOhAVEBUQFREUEBUQ"
|
||||
"OhEUERQRORE5EBURFBA6EBUQOhE5EBUQFRA6EDoRFBEADQUAAA=="
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue