Add type hints to integration tests (part 2) (#87789)
* Add type hints to integration tests (part 2) * typo * Improve analytics * Improve automation * Imrpove bluetooth
This commit is contained in:
parent
fa7acb4f0d
commit
0cf5e9fb4a
54 changed files with 1075 additions and 676 deletions
|
@ -6,6 +6,7 @@ import blebox_uniapi
|
|||
import pytest
|
||||
|
||||
from homeassistant.const import ATTR_ICON
|
||||
from homeassistant.core import HomeAssistant
|
||||
|
||||
from .conftest import async_setup_entity, mock_feature
|
||||
|
||||
|
@ -39,7 +40,9 @@ def tv_lift_box_fixture(caplog):
|
|||
return (feature, "button.tvliftbox_open_or_stop")
|
||||
|
||||
|
||||
async def test_tvliftbox_init(tvliftbox, hass, caplog):
|
||||
async def test_tvliftbox_init(
|
||||
tvliftbox, hass: HomeAssistant, caplog: pytest.LogCaptureFixture
|
||||
) -> None:
|
||||
"""Test tvLiftBox initialisation."""
|
||||
caplog.set_level(logging.ERROR)
|
||||
|
||||
|
@ -53,7 +56,9 @@ async def test_tvliftbox_init(tvliftbox, hass, caplog):
|
|||
|
||||
|
||||
@pytest.mark.parametrize("input", query_icon_matching)
|
||||
async def test_get_icon(input, tvliftbox, hass, caplog):
|
||||
async def test_get_icon(
|
||||
input, tvliftbox, hass: HomeAssistant, caplog: pytest.LogCaptureFixture
|
||||
) -> None:
|
||||
"""Test if proper icon is returned."""
|
||||
caplog.set_level(logging.ERROR)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue