Fix voip test RuntimeWarning (#144519)

This commit is contained in:
Marc Mueller 2025-05-09 00:26:43 +02:00 committed by GitHub
parent 8977458e48
commit d1b85cd452
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1119,9 +1119,10 @@ async def test_start_conversation_user_doesnt_pick_up(
& assist_satellite.AssistSatelliteEntityFeature.START_CONVERSATION
)
# Protocol has already been mocked, but "outgoing_call" is not async
# Protocol has already been mocked, but "outgoing_call" and "cancel_call" are not async
mock_protocol: AsyncMock = hass.data[DOMAIN].protocol
mock_protocol.outgoing_call = Mock()
mock_protocol.cancel_call = Mock()
announcement = assist_satellite.AssistSatelliteAnnouncement(
message="test announcement",