mirror of
https://github.com/home-assistant/core.git
synced 2025-04-25 01:38:02 +00:00
Rename variable in landisgyr_heat_meter tests (#122995)
This commit is contained in:
parent
ab522dab71
commit
adf20b60dc
@ -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."""
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user