Mock the Aprilaire client stop_listen as a sync call (#179863)

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Paulus Schoutsen
2026-08-22 12:17:42 -05:00
committed by GitHub
co-authored by Claude
parent 451ac3f72c
commit 7cbd0941ee
+2 -1
View File
@@ -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",