mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
Fix update callback in Cambridge Audio test (#129092)
This commit is contained in:
parent
d27051f04d
commit
d135da6c1d
@ -49,9 +49,8 @@ from tests.common import MockConfigEntry
|
|||||||
|
|
||||||
async def mock_state_update(client: AsyncMock) -> None:
|
async def mock_state_update(client: AsyncMock) -> None:
|
||||||
"""Trigger a callback in the media player."""
|
"""Trigger a callback in the media player."""
|
||||||
await client.register_state_update_callbacks.call_args[0][0](
|
for callback in client.register_state_update_callbacks.call_args_list:
|
||||||
client, CallbackType.STATE
|
await callback[0][0](client, CallbackType.STATE)
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
async def test_entity_supported_features(
|
async def test_entity_supported_features(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user