Rename variable in landisgyr_heat_meter tests (#122995)

This commit is contained in:
epenet 2024-08-01 13:43:09 +02:00 committed by GitHub
parent ab522dab71
commit adf20b60dc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,6 +1,6 @@
"""Test the Landis + Gyr Heat Meter init."""
from unittest.mock import patch
from unittest.mock import MagicMock, patch
from homeassistant.components.landisgyr_heat_meter.const import (
DOMAIN as LANDISGYR_HEAT_METER_DOMAIN,
@ -17,7 +17,7 @@ API_HEAT_METER_SERVICE = (
@patch(API_HEAT_METER_SERVICE)
async def test_unload_entry(_, hass: HomeAssistant) -> None:
async def test_unload_entry(mock_meter_service: MagicMock, hass: HomeAssistant) -> None:
"""Test removing config entry."""
mock_entry_data = {
"device": "/dev/USB0",
@ -41,7 +41,9 @@ async def test_unload_entry(_, hass: HomeAssistant) -> None:
@patch(API_HEAT_METER_SERVICE)
async def test_migrate_entry(
_, hass: HomeAssistant, entity_registry: er.EntityRegistry
mock_meter_service: MagicMock,
hass: HomeAssistant,
entity_registry: er.EntityRegistry,
) -> None:
"""Test successful migration of entry data from version 1 to 2."""