diff --git a/tests/components/mqtt/test_siren.py b/tests/components/mqtt/test_siren.py index c2cb39cca0a..77bec4accfb 100644 --- a/tests/components/mqtt/test_siren.py +++ b/tests/components/mqtt/test_siren.py @@ -832,7 +832,7 @@ async def test_command_templates( mqtt_mock.async_publish.assert_any_call( "test-topic", "CMD: ON, DURATION: 22, TONE: ping, VOLUME: 0.88", 0, False ) - mqtt_mock.async_publish.call_count == 1 + assert mqtt_mock.async_publish.call_count == 1 mqtt_mock.reset_mock() await async_turn_off( hass, @@ -841,7 +841,7 @@ async def test_command_templates( mqtt_mock.async_publish.assert_any_call( "test-topic", "CMD: OFF, DURATION: , TONE: , VOLUME:", 0, False ) - mqtt_mock.async_publish.call_count == 1 + assert mqtt_mock.async_publish.call_count == 1 mqtt_mock.reset_mock() await async_turn_on( @@ -862,7 +862,7 @@ async def test_command_templates( entity_id="siren.milk", ) mqtt_mock.async_publish.assert_any_call("test-topic", "CMD_OFF: OFF", 0, False) - mqtt_mock.async_publish.call_count == 1 + assert mqtt_mock.async_publish.call_count == 2 mqtt_mock.reset_mock()