mirror of
https://github.com/home-assistant/core.git
synced 2025-04-25 17:57:55 +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."""
|
"""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 (
|
from homeassistant.components.landisgyr_heat_meter.const import (
|
||||||
DOMAIN as LANDISGYR_HEAT_METER_DOMAIN,
|
DOMAIN as LANDISGYR_HEAT_METER_DOMAIN,
|
||||||
@ -17,7 +17,7 @@ API_HEAT_METER_SERVICE = (
|
|||||||
|
|
||||||
|
|
||||||
@patch(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."""
|
"""Test removing config entry."""
|
||||||
mock_entry_data = {
|
mock_entry_data = {
|
||||||
"device": "/dev/USB0",
|
"device": "/dev/USB0",
|
||||||
@ -41,7 +41,9 @@ async def test_unload_entry(_, hass: HomeAssistant) -> None:
|
|||||||
|
|
||||||
@patch(API_HEAT_METER_SERVICE)
|
@patch(API_HEAT_METER_SERVICE)
|
||||||
async def test_migrate_entry(
|
async def test_migrate_entry(
|
||||||
_, hass: HomeAssistant, entity_registry: er.EntityRegistry
|
mock_meter_service: MagicMock,
|
||||||
|
hass: HomeAssistant,
|
||||||
|
entity_registry: er.EntityRegistry,
|
||||||
) -> None:
|
) -> None:
|
||||||
"""Test successful migration of entry data from version 1 to 2."""
|
"""Test successful migration of entry data from version 1 to 2."""
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user