Add type hints to integration tests (f-g) (#87700)
This commit is contained in:
parent
3052de3e8e
commit
7a4d15a657
75 changed files with 609 additions and 415 deletions
|
@ -3,9 +3,11 @@ import logging
|
|||
from unittest.mock import MagicMock, patch
|
||||
|
||||
from pyfido.client import PyFidoError
|
||||
import pytest
|
||||
|
||||
from homeassistant.bootstrap import async_setup_component
|
||||
from homeassistant.components.fido import sensor as fido
|
||||
from homeassistant.core import HomeAssistant
|
||||
|
||||
from tests.common import assert_setup_component
|
||||
|
||||
|
@ -60,7 +62,7 @@ async def test_fido_sensor(event_loop, hass):
|
|||
assert state.state == "100.33"
|
||||
|
||||
|
||||
async def test_error(hass, caplog):
|
||||
async def test_error(hass: HomeAssistant, caplog: pytest.LogCaptureFixture) -> None:
|
||||
"""Test the Fido sensor errors."""
|
||||
caplog.set_level(logging.ERROR)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue