Add device trigger support to sensor entities (#27133)
* Add device trigger support to sensor entities * Fix typing * Fix tests, add test helper for comparing lists
This commit is contained in:
parent
e005f6f23a
commit
3e99743244
10 changed files with 689 additions and 11 deletions
|
@ -13,7 +13,8 @@ from homeassistant.util import location
|
|||
from homeassistant.auth.const import GROUP_ID_ADMIN, GROUP_ID_READ_ONLY
|
||||
from homeassistant.auth.providers import legacy_api_password, homeassistant
|
||||
|
||||
from tests.common import (
|
||||
pytest.register_assert_rewrite("tests.common")
|
||||
from tests.common import ( # noqa: E402 module level import not at top of file
|
||||
async_test_home_assistant,
|
||||
INSTANCES,
|
||||
mock_coro,
|
||||
|
@ -21,7 +22,9 @@ from tests.common import (
|
|||
MockUser,
|
||||
CLIENT_ID,
|
||||
)
|
||||
from tests.test_util.aiohttp import mock_aiohttp_client
|
||||
from tests.test_util.aiohttp import (
|
||||
mock_aiohttp_client,
|
||||
) # noqa: E402 module level import not at top of file
|
||||
|
||||
if os.environ.get("UVLOOP") == "1":
|
||||
import uvloop
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue