mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Remove pylance warnings for Comelit tests (#145199)
This commit is contained in:
parent
e64f76bebe
commit
760f2d1959
@ -57,7 +57,7 @@ def mock_serial_bridge() -> Generator[AsyncMock]:
|
|||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def mock_serial_bridge_config_entry() -> Generator[MockConfigEntry]:
|
def mock_serial_bridge_config_entry() -> MockConfigEntry:
|
||||||
"""Mock a Comelit config entry for Comelit bridge."""
|
"""Mock a Comelit config entry for Comelit bridge."""
|
||||||
return MockConfigEntry(
|
return MockConfigEntry(
|
||||||
domain=COMELIT_DOMAIN,
|
domain=COMELIT_DOMAIN,
|
||||||
@ -94,7 +94,7 @@ def mock_vedo() -> Generator[AsyncMock]:
|
|||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def mock_vedo_config_entry() -> Generator[MockConfigEntry]:
|
def mock_vedo_config_entry() -> MockConfigEntry:
|
||||||
"""Mock a Comelit config entry for Comelit vedo."""
|
"""Mock a Comelit config entry for Comelit vedo."""
|
||||||
return MockConfigEntry(
|
return MockConfigEntry(
|
||||||
domain=COMELIT_DOMAIN,
|
domain=COMELIT_DOMAIN,
|
||||||
|
@ -139,7 +139,7 @@ async def test_climate_data_update_bad_data(
|
|||||||
status=0,
|
status=0,
|
||||||
human_status="off",
|
human_status="off",
|
||||||
type="climate",
|
type="climate",
|
||||||
val="bad_data",
|
val="bad_data", # type: ignore[arg-type]
|
||||||
protected=0,
|
protected=0,
|
||||||
zone="Living room",
|
zone="Living room",
|
||||||
power=0.0,
|
power=0.0,
|
||||||
|
@ -146,7 +146,7 @@ async def test_humidifier_data_update_bad_data(
|
|||||||
status=0,
|
status=0,
|
||||||
human_status="off",
|
human_status="off",
|
||||||
type="climate",
|
type="climate",
|
||||||
val="bad_data",
|
val="bad_data", # type: ignore[arg-type]
|
||||||
protected=0,
|
protected=0,
|
||||||
zone="Living room",
|
zone="Living room",
|
||||||
power=0.0,
|
power=0.0,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user