mirror of
https://github.com/home-assistant/core.git
synced 2026-08-24 10:13:52 -05:00
Mock the Aprilaire client stop_listen as a sync call (#179863)
Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude
parent
451ac3f72c
commit
7cbd0941ee
@@ -1,6 +1,6 @@
|
||||
"""Tests for the Aprilaire integration setup."""
|
||||
|
||||
from unittest.mock import AsyncMock, patch
|
||||
from unittest.mock import AsyncMock, MagicMock, patch
|
||||
|
||||
from pyaprilaire.const import Attribute
|
||||
from syrupy.assertion import SnapshotAssertion
|
||||
@@ -27,6 +27,7 @@ async def test_device_registry(
|
||||
config_entry.add_to_hass(hass)
|
||||
|
||||
client = AsyncMock()
|
||||
client.stop_listen = MagicMock()
|
||||
client.data = {
|
||||
Attribute.MAC_ADDRESS: "1234567890ab",
|
||||
Attribute.NAME: "Aprilaire",
|
||||
|
||||
Reference in New Issue
Block a user