Skip to content

Commit 3148719

Browse files
authored
Use newer mock in recent Reolink test (home-assistant#147448)
1 parent abfb7af commit 3148719

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/components/reolink/test_init.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1156,11 +1156,11 @@ def register_callback(
11561156

11571157
async def test_baichaun_only(
11581158
hass: HomeAssistant,
1159-
reolink_connect: MagicMock,
1159+
reolink_host: MagicMock,
11601160
config_entry: MockConfigEntry,
11611161
) -> None:
11621162
"""Test initializing a baichuan only device."""
1163-
reolink_connect.baichuan_only = True
1163+
reolink_host.baichuan_only = True
11641164

11651165
with patch("homeassistant.components.reolink.PLATFORMS", [Platform.SWITCH]):
11661166
assert await hass.config_entries.async_setup(config_entry.entry_id)

0 commit comments

Comments
 (0)