From 3074fe88a95660425d20fe387257a6aa2bc8421d Mon Sep 17 00:00:00 2001 From: silamon Date: Tue, 24 Sep 2024 05:41:18 +0000 Subject: [PATCH] Update tests --- tests/linkplay/test_bridge.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/linkplay/test_bridge.py b/tests/linkplay/test_bridge.py index 0e1051c..ff364d7 100644 --- a/tests/linkplay/test_bridge.py +++ b/tests/linkplay/test_bridge.py @@ -1,6 +1,5 @@ """Test bridge functionality.""" -from dataclasses import asdict from typing import Any from unittest.mock import AsyncMock, patch @@ -64,7 +63,7 @@ async def test_deserialize_device(): bridge = AsyncMock() device = LinkPlayDevice(bridge) - asdict(device) + device.to_dict() async def test_player_update_status(): @@ -275,7 +274,7 @@ async def test_deserialize_player(): bridge = AsyncMock() player = LinkPlayPlayer(bridge) - asdict(player) + player.to_dict() async def test_multiroom_setup():